Remove Duplicates
Print the array keeping only the first occurrence of each value, in the original order.
Input
, then integers.
Output
The array without duplicates.
Constraints
Sample 1
Input
5 3 1 3 2 1
Output
3 1 2
Print the array keeping only the first occurrence of each value, in the original order.
, then integers.
The array without duplicates.
Input
5 3 1 3 2 1
Output
3 1 2