#include<bits/stdc++.h>

using namespace std;

int main() {

map<int, int> a;

int n = 0;

cin >> n;

int* s = (int*)malloc(sizeof(int) * n);

for (int i = 0; i < n; i++)

{

cin >> s[i]; a[s[i]]++;

}

for (auto it=a.begin();it!=a.end();it++) {

cout<<it->first<<" ";

}

return 0;

}