#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
while(cin>>n){
set<int>v;
while(n--){
int temp;cin>>temp;
v.insert(temp);
}
for(auto a:v)
cout<<a<<" ";
}
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号