#include <iostream>
#include <set>

using namespace std;

int main(int, char **)
{
    uint16_t n;
    cin >> n;

    set<uint16_t> s;
    for (auto i = n; n > 0; --n) {
        uint16_t t;
        cin >> t;
        s.insert(t);
    }

    for (auto i : s) {
        cout << i << endl;
    }
}