#include using namespace std; typedef long long LL; int main() { // 1. 入力情報取得. int N; cin >> N; map m; for(int i = 0; i < N; i++){ LL a; cin >> a; m[a]++; } // 2. 新規性は? int ans = 0; for(auto &p : m) if(p.second == 1) ans++; // 3. 後処理. cout << ans << endl; return 0; }