public static boolean solve ( long k , long r , long b , long x , long y ) {
  long rnum = ( r - k ) / ( x - 1 ) ;
  long bnum = ( b - k ) / ( y - 1 ) ;
  if ( rnum + bnum >= k ) {
    return true ;
  }
  return false ;
}

public static boolean solve ( long k , long r , long b , long x , long y ) { long rnum = ( r - k ) / ( x - 1 ) ; long bnum = ( b - k ) / ( y - 1 ) ; if ( rnum + bnum >= k ) { return true ; } 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)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) 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: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (block (return_statement (true)))) (return_statement (false))))