private static long testCase48 ( long n , long m , long k ) {
  long max = Math . max ( n , m ) ;
  long x = 0 ;
  long min = Math . min ( n , m ) ;
  long dif = k - max ;
  if ( dif == 1 || dif % 2 != 0 ) {
    x = dif - 1 ;
    k += ( 1 - dif ) ;
    dif = x ;
  }
  else k -= dif ;
  if ( ( k % 2 != 0 && min % 2 == 0 ) || ( ( min == 1 || min % 2 != 0 ) && k % 2 == 0 ) ) max -= 1 ;
  return max + dif ;
}

private static long testCase48 ( long n , long m , long k ) { long max = Math . max ( n , m ) ; long x = 0 ; long min = Math . min ( n , m ) ; long dif = k - max ; if ( dif == 1 || dif % 2 != 0 ) { x = dif - 1 ; k += ( 1 - dif ) ; dif = x ; } else k -= dif ; if ( ( k % 2 != 0 && min % 2 == 0 ) || ( ( min == 1 || min % 2 != 0 ) && k % 2 == 0 ) ) max -= 1 ; return max + dif ; }
(method_declaration (modifiers) type: (integral_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))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_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: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (expression_statement (assignment_expression left: (identifier) right: (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: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)))) right: (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal)))))) consequence: (expression_statement (assignment_expression left: (identifier) right: (decimal_integer_literal)))) (return_statement (binary_expression left: (identifier) right: (identifier)))))