#P344. 【例60.1】 整数去重

【例60.1】 整数去重

Description

Given a sequence of nn integers, perform a deduplication operation on this sequence. Deduplication means that for each number that appears multiple times in the sequence, only the first occurrence is kept, and all subsequent occurrences are removed.

Input Format

The input consists of two lines:
The first line contains a positive integer nn (1n2000001 \le n \le 200000), representing the number of integers in the sequence on the second line;
The second line contains nn integers, separated by a single space. Each integer is greater than or equal to 00 and less than or equal to 100,000100,000.

Output Format

Output a single line containing the unique numbers in the order they first appear in the input, separated by a single space.

Sample

5
10 12 93 12 75
10 12 93 75