#include #include using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) int main(void){ int n; cin >> n; int num[100001]; rep(i, 100001) num[i] = 0; rep(i, n){ int tmp; cin >> tmp; num[tmp]++; } int ans = 0; rep(i, 100001){ if(num[i] == 1)ans++; } printf("%d\n", ans); return 0; }