public static void main ( String [ ] $ ) {
  int n = scanner . nextInt ( ) ;
  java . util . Set < Integer > a = java . util . stream . IntStream . range ( 0 , n ) . map ( i -> scanner . nextInt ( ) ) . boxed ( ) . collect ( java . util . stream . Collectors . toSet ( ) ) ;
  System . out . println ( a . stream ( ) . filter ( i -> {
    while ( i % 2 == 0 ) if ( a . contains ( i /= 2 ) ) return false ;
    return true ;
  }
  ) . count ( ) ) ;
}

public static void main ( String [ ] $ ) { int n = scanner . nextInt ( ) ; java . util . Set < Integer > a = java . util . stream . IntStream . range ( 0 , n ) . map ( i -> scanner . nextInt ( ) ) . boxed ( ) . collect ( java . util . stream . Collectors . toSet ( ) ) ; System . out . println ( a . stream ( ) . filter ( i -> { while ( i % 2 == 0 ) if ( a . contains ( i /= 2 ) ) return false ; return true ; } ) . 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 (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (generic_type (scoped_type_identifier (scoped_type_identifier (type_identifier) (type_identifier)) (type_identifier)) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) name: (identifier) arguments: (argument_list (decimal_integer_literal) (identifier))) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (method_invocation object: (field_access object: (field_access object: (field_access object: (identifier) field: (identifier)) field: (identifier)) field: (identifier)) name: (identifier) arguments: (argument_list)))))) (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: (identifier) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (block (while_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) body: (if_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (assignment_expression left: (identifier) right: (decimal_integer_literal))))) consequence: (return_statement (false)))) (return_statement (true)))))) name: (identifier) arguments: (argument_list)))))))