///
include[HTML_REMOVED] //明明的随机数
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
const int N = 110;
int n;
int q[N];
int main()
{
scanf(“%d”,&n);
for(int i=0; i<n; i)
scanf(“%d”, &q[i]);
sort(q,q+n);
int k=unique(q,q+n)-q;
printf(“%d\n”, k);
for(int i=0;i<k;i)
printf(“%d “,q[i]);
return 0;
}
///