#include #include int main(void) { int i, j, n, f, c, a[10001]; scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &a[i]); c = 0; for (i = 0; i < n - 1; i++) { f = 0; if (a[i] != 0) { for (j = i + 1; j < n; j++) { if (a[i] == a[j]) { a[j] = 0; f = 1; } } if (f > 0) a[i] = 0; else c++; } } if (a[n-1] != 0) c++; printf("%d\n", c); return EXIT_SUCCESS; }