#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n, x;
    if (!(cin >> n)) return 0;
    unordered_set<int> seen;
    bool dup = false;
    bool first = true;
    while (n--)
    {
        cin >> x;
        if (seen.intsert(x) .second)
        {
            if (!first) cout <<'';
            cout <<x;
            first = 
        }
    }
    
}