private static void handle ( Scanner sc , PrintWriter out ) throws IOException {
  int bn = sc . nextInt ( ) ;
  int gn = sc . nextInt ( ) ;
  if ( bn > gn ) {
    out . println ( work ( bn , gn , 'B' , 'G' ) ) ;
  }
  else {
    out . println ( work ( gn , bn , 'G' , 'B' ) ) ;
  }
}

private static void handle ( Scanner sc , PrintWriter out ) throws IOException { int bn = sc . nextInt ( ) ; int gn = sc . nextInt ( ) ; if ( bn > gn ) { out . println ( work ( bn , gn , ' B ' , ' G ' ) ) ; } else { out . println ( work ( gn , bn , ' G ' , ' B ' ) ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (formal_parameter type: (type_identifier) name: (identifier))) (throws (type_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: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (character_literal) (character_literal))))))) alternative: (block (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (character_literal) (character_literal))))))))))