static long modI ( long a , long m ) {
  return ( a %= m ) <= 1 ? 1 : ( 1 - modI ( m % a , a ) * m ) / a + m ;
}

static long modI ( long a , long m ) { return ( a %= m ) <= 1 ? 1 : ( 1 - modI ( m % a , a ) * m ) / a + m ; }
(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))) body: (block (return_statement (ternary_expression condition: (binary_expression left: (parenthesized_expression (assignment_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)) consequence: (decimal_integer_literal) alternative: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (decimal_integer_literal) right: (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier))) right: (identifier)))) right: (identifier)) right: (identifier))))))