public static boolean check ( int g , int b ) {
  if ( b < g - 1 ) return false ;
  b = b - 2 * ( g - 1 ) ;
  int x = b / 2 ;
  b -= x ;
  if ( b < 3 && x < 3 ) return true ;
  else return false ;
}

public static boolean check ( int g , int b ) { if ( b < g - 1 ) return false ; b = b - 2 * ( g - 1 ) ; int x = b / 2 ; b -= x ; if ( b < 3 && x < 3 ) return true ; else return false ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (return_statement (false))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (decimal_integer_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (return_statement (true)) alternative: (return_statement (false)))))