#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you const int INF = 999999999; const int MOD = 1e9 + 7; long long n, k[100005], ans; int main() { cin >> n; for (int i = 0; i < n; ++i) { cin >> k[i]; } for (int i = 0; i < n; ++i) { bool same = true; for (int j = 0; j < n; ++j) { if (k[i] == k[j] && i != j) { same = false; break; } } if (same) { ++ans; } } cout << ans << endl; }