水题
#include<iostream>
#include<cstdio>
#include<set>
using namespace std;
int main() {
//freopen("d:\\input.txt","r",stdin);
int n,t,cnt=0;
set<int> m;
scanf("%d",&n);
for(int i=0;i<n;i++){
scanf("%d",&t);
t=(t>=0?t:-t);
if(m.count(t)==0)
m.insert(t);
else
cnt++;
}
printf("%d\n",cnt);
return 0;
}