#include <bits/stdc++.h>
using namespace std;
//map默认从小到大按key值排序,若要从大到小添上greater<int>
map<int, int> m;
int main() {
int n;
while(cin>>n){
for(int i=0;i<n;i++){
int tmp;
cin>>tmp;
if(m[tmp]==0) m[tmp]=1;
}
for(auto it=m.begin();it!=m.end();it++) cout<<it->first<<" ";
}
}
// 64 位输出请用 printf("%lld")


京公网安备 11010502036488号