#import <Foundation/Foundation.h>
typedef long long INT;
int main(){
    @autoreleasepool {
        NSMutableSet *set = [NSMutableSet set];
        INT N;
        scanf("%lld",&N);
        for(INT i=0;i<N;i++){
            INT a;
            scanf("%lld",&a);
            if([set containsObject:@(a)]){
                [set removeObject:@(a)];
            } else {
                [set addObject:@(a)];
            }
        }
        printf("%ld",[set count]);
    }
}
