#include #include #include // *********************** #define lolong long long #define gc(c) do{c = getchar_unlocked();}while(0) #define pc(c) putchar_unlocked(c) extern char getchar_unlocked(void); extern void putchar_unlocked(char c); static char *GETWORD(char* str) {char c;char *cp;cp=&str[0];gc(c);while(c!=EOF){if((c==' ')||(c=='\n'))break;*cp++=c;gc(c);}*cp='\0';return &str[0];} #define str_len(a) mystr_len_lim(a,9999) static int mystr_len_lim(char *str,int lim){int i=0;do{if(str[i]=='\0')break;i++;}while(ib){return a;}return b;} static lolong GETLINELL(void) {char s[44];GETLINE(s);return atoll(s);} static int min(int a,int b){if(a0) { b[i++] = n % 10 + '0'; n = n / 10; } while (i--) pc(b[i]); } pc('\n'); } // ********************* #define MAPSIZE (10001) char m[MAPSIZE]; int N; // ********************* // ********************* int main( void ) { int ans = 0; REP(i,MAPSIZE) m[i]=0; N = GETLINEINT(); REP(i,N) { int v = GETWORDINT(); if(m[v]==1) { m[v]++; ans--; } else if(m[v]==0) { m[v]++; ans++; } } out( ans ); }