#include #include #define REP(i,n) for(i=0; i v) { int i,j,count=0,flag=1; REP(i,v.size()) { REP(j,v.size()) { if(i==j) { continue; } if(v[i]==v[j]) { flag=0; break; } } if(flag>0) { count++; } else { flag=1; } } return count; } int main() { int n; cin>>n; vector v(n); int num,i; REP(i,n){ cin>>num; v[i]=num; } cout << (search(v)) << endl; return 0; }