include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main(){
int N;
int a[110];
int tem;
scanf(“%d”,&N);
for(int i=0;i[HTML_REMOVED]>tem;
a[i]=tem;
}
sort(a,a+N);
tem = unique(a,a+N)-a;
printf(“%d\n”,tem);
for(int i=0;i<tem;i++) printf(“%d “,a[i]);
return 0;
}