public static boolean works ( long x , long y , long p , long q , long mid ) {
  if ( p * mid >= x && q * mid - p * mid >= y - x ) return true ;
  return false ;
}

public static boolean works ( long x , long y , long p , long q , long mid ) { if ( p * mid >= x && q * mid - p * mid >= y - x ) 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 (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))) right: (binary_expression left: (identifier) right: (identifier))))) consequence: (return_statement (true))) (return_statement (false))))