Remove Duplicates from Sorted Array#4765

Remove Duplicates from Sorted Array

1 second
128 megabytes
Easy

Given a sorted array, remove the duplicates such that each element appears only once.

Input

The first line contains the size n~(1 \le n \le 100) of array. The second line gives integers in sorted order, each number is no greater than by absolute value.

Output

Print the sorted array with removed duplicates.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading