文件目录

#include <bits/stdc++.h>
using namespace std;
int n;
set<int> s;
int main()
{
    cin >> n;
    while (cin >> n)
        s.insert(n);
    for (auto i = s.begin(); i != s.end(); i++)
        cout << *i << " ";
    return 0;
}