#include <bits/stdc++.h>
using namespace std;
int main(){
//用数组来表示哈希,省去了排序的时间
int N=0;
cin>>N;
int arr[1005]={0};
for(int i=0;i<N;i++){
int temp;
cin>>temp;
arr[temp]++;
}
for(int i=0;i<1005;i++){
if(arr[i]!=0) cout<<i<<' '<<endl;
}
return 0;
}