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