#include #define F(i,n) for(int i = 0;i < n;i++) int main(void){ int n,t,c=0;int r=0; scanf("%d",&n); int a[n],a2[n],b=0; F(i,n) a[i] = 0; F(i,n) a2[i] = 0; F(i,n){ scanf("%d",&t); F(i,b){ if(a[b]==t){c=1;a2[b]=1;break;} } if(c==0){ b++; a[b]=t; r++; } c=0; } F(i,b+1){if(a2[i]==1)r--;} printf("%d\n",r); return 0; }