#include< iostream>//记得去掉空格
#include< algorithm>
using namespace std;
int main()
{
int n,s[100000],i;
int gjr=0;
cin>>n;
for(i=1;i<=n;i++)
cin>>s[i];
sort(s+1,s+1+n);//从一开始记录,所以从s+1开始
for(i=1;i<=n;i++)
{
if(s[i]!=gjr)//因为之前排好了序,所以这样写就可以防止重复输出
{
cout<<s[i]<<" ";
gjr=s[i];
}
}
return 0;
}