#include int check(int A, int list[], int cnt){ int i, ret = 0;; for(i = 0; i < cnt; i++){ if(A == list[i]){ ret = 1; break; } } return ret; } int main(){ int N, i, j, cnt = 0, new_n = 0; int A[100000]; scanf("%d\n", &N); for(i = 0; i < N; i++){ scanf("%d", &A[i]); } for(i = 0; i < N; i++){ if(check(A[i], A, i) == 0){ for(j = 0; j < N; j++){ if(A[i] != A[j]){ cnt++; //printf("i %d j %d cnt %d\n", i, j, cnt); }else if(i != j){ break; } if(cnt == N - 1){ new_n++; //printf("new i %d j %d\n", i, j); break; } } } cnt = 0; } printf("%d\n", new_n); return 0; }