#include<iostream>
#include<set>
#include<algorithm>
using namespace std;
int main()
{
    int n;
    while(cin>>n)
    {
        set<int>s;
        while(n--)
        {
            int d;
            cin>>d;
            s.insert(d);
        }
        set<int>::iterator iter;
        iter=s.begin();
        while(iter!=s.end())
        {
            cout<<*iter<<endl;
            iter++;
        }
    }
    return 0;
}