#include <iostream> #include <set> using namespace std; int main() { int n, val; set<int> s; cin >> n; while (n--) { cin >> val; s.insert(val); } for (auto i:s) cout << i << endl; return 0; }