public static long maxSumProduct ( long N ) {
  if ( N < 10 ) return N ;
  return Math . max ( repeatedSum ( N ) , repeatedProduct ( N ) ) ;
}

public static long maxSumProduct ( long N ) { if ( N < 10 ) return N ; return Math . max ( repeatedSum ( N ) , repeatedProduct ( N ) ) ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (return_statement (identifier))) (return_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier))) (method_invocation name: (identifier) arguments: (argument_list (identifier))))))))