#include <bits/stdc++.h>
using namespace std;

int main()
{
    set<int> s;
    set<int>::iterator it;
    int n;
    cin >> n;

    while (n--)
    {
        int x;
        cin >> x;
        s.insert(x);
    }
    for (it = s.begin(); it != s.end(); it++)
    {
        if (it != s.begin())
            cout << " ";
        cout << *it;
    }
    cout << endl;
}
