private static void solve ( ) {
  char [ ] c1 = next ( ) . toCharArray ( ) ;
  char [ ] c2 = next ( ) . toCharArray ( ) ;
  int cnt1 = 0 ;
  for ( int i = 0 ;
  i < c1 . length ;
  i ++ ) {
    if ( c1 [ i ] == '1' ) cnt1 ++ ;
  }
  int cnt2 = 0 ;
  for ( int i = 0 ;
  i < c2 . length ;
  i ++ ) {
    if ( c2 [ i ] == '1' ) cnt2 ++ ;
  }
  if ( ( cnt1 % 2 == 0 && cnt2 > cnt1 ) || ( cnt1 % 2 != 0 && cnt2 > cnt1 + 1 ) ) {
    System . out . println ( "NO" ) ;
  }
  else {
    System . out . println ( "YES" ) ;
  }
}

private static void solve ( ) { char [ ] c1 = next ( ) . toCharArray ( ) ; char [ ] c2 = next ( ) . toCharArray ( ) ; int cnt1 = 0 ; for ( int i = 0 ; i < c1 . length ; i ++ ) { if ( c1 [ i ] == '1' ) cnt1 ++ ; } int cnt2 = 0 ; for ( int i = 0 ; i < c2 . length ; i ++ ) { if ( c2 [ i ] == '1' ) cnt2 ++ ; } if ( ( cnt1 % 2 == 0 && cnt2 > cnt1 ) || ( cnt1 % 2 != 0 && cnt2 > cnt1 + 1 ) ) { System . out . println ( " NO " ) ; } else { System . out . println ( " YES " ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))) consequence: (expression_statement (update_expression (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))) consequence: (expression_statement (update_expression (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (identifier)))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))))) consequence: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal))))))))