A. Remove Duplicates
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Petya has an array aa consisting of nn integers. He wants to remove duplicate (equal) elements.
Petya wants to leave only the rightmost entry (occurrence) for each element of the array. The relative order of the remaining unique elements should not be changed.
Input
The first line contains a single integer nn (1≤n≤501≤n≤50) — the number of elements in Petya's array.
The following line contains a sequence