Given a sorted array, remove the duplicates such that each element appears only once.
The first line contains the size of array. The second line gives integers in sorted order, each number is no greater than by absolute value.
Print the sorted array with removed duplicates.