static long combination ( int left , int right ) {
  if ( right > left - right ) {
    return combination ( left , left - right ) ;
  }
  if ( right == 0 ) {
    return 1 ;
  }
  if ( right == 1 ) {
    return left ;
  }
  if ( dp [ left ] [ right ] != 0 ) {
    return dp [ left ] [ right ] ;
  }
  long val = combination ( left - 1 , right ) + combination ( left - 1 , right - 1 ) ;
  val %= MOD ;
  dp [ left ] [ right ] = val ;
  return val ;
}

static long combination ( int left , int right ) { if ( right > left - right ) { return combination ( left , left - right ) ; } if ( right == 0 ) { return 1 ; } if ( right == 1 ) { return left ; } if ( dp [ left ] [ right ] != 0 ) { return dp [ left ] [ right ] ; } long val = combination ( left - 1 , right ) + combination ( left - 1 , right - 1 ) ; val %= MOD ; dp [ left ] [ right ] = val ; return val ; }
(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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (block (return_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (return_statement (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_integer_literal))) consequence: (block (return_statement (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier))) right: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (decimal_integer_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (identifier))) (return_statement (identifier))))