public static void main ( String [ ] args ) {
  System . out . println ( IntStream . range ( 0 , scanner . nextInt ( ) ) . boxed ( ) . collect ( Collectors . groupingBy ( i -> scanner . nextInt ( ) , Collectors . reducing ( false , i -> true , ( a , b ) -> a ^ b ) ) ) . values ( ) . stream ( ) . filter ( Boolean :: booleanValue ) . count ( ) ) ;
}

public static void main ( String [ ] args ) { System . out . println ( IntStream . range ( 0 , scanner . nextInt ( ) ) . boxed ( ) . collect ( Collectors . groupingBy ( i -> scanner . nextInt ( ) , Collectors . reducing ( false , i -> true , ( a , b ) -> a ^ b ) ) ) . values ( ) . stream ( ) . filter ( Boolean :: booleanValue ) . count ( ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (false) (lambda_expression parameters: (identifier) body: (true)) (lambda_expression parameters: (inferred_parameters (identifier) (identifier)) body: (binary_expression left: (identifier) right: (identifier))))))))) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (method_reference (identifier) (identifier)))) name: (identifier) arguments: (argument_list)))))))