private static Consumer < List < String >> solve ( ) {
  return args -> {
    final List < Integer > firstRow = Arrays . stream ( args . get ( 1 ) . split ( " " ) ) . map ( Integer :: valueOf ) . collect ( toList ( ) ) ;
    final List < Integer > secondRow = Arrays . stream ( args . get ( 2 ) . split ( " " ) ) . map ( Integer :: valueOf ) . collect ( toList ( ) ) ;
    final Integer ans = IntStream . range ( 0 , firstRow . size ( ) ) . map ( index -> firstRow . subList ( 0 , index + 1 ) . stream ( ) . mapToInt ( Integer :: intValue ) . sum ( ) + secondRow . subList ( index , secondRow . size ( ) ) . stream ( ) . mapToInt ( Integer :: intValue ) . sum ( ) ) . max ( ) . orElse ( - 1 ) ;
    System . out . println ( ans ) ;
  };
}

private static Consumer < List < String > > solve ( ) { return args -> { final List < Integer > firstRow = Arrays . stream ( args . get ( 1 ) . split ( " ▁ " ) ) . map ( Integer :: valueOf ) . collect ( toList ( ) ) ; final List < Integer > secondRow = Arrays . stream ( args . get ( 2 ) . split ( " ▁ " ) ) . map ( Integer :: valueOf ) . collect ( toList ( ) ) ; final Integer ans = IntStream . range ( 0 , firstRow . size ( ) ) . map ( index -> firstRow . subList ( 0 , index + 1 ) . stream ( ) . mapToInt ( Integer :: intValue ) . sum ( ) + secondRow . subList ( index , secondRow . size ( ) ) . stream ( ) . mapToInt ( Integer :: intValue ) . sum ( ) ) . max ( ) . orElse ( - 1 ) ; System . out . println ( ans ) ; } ; }
(method_declaration (modifiers) type: (generic_type (type_identifier) (type_arguments (generic_type (type_identifier) (type_arguments (type_identifier))))) name: (identifier) parameters: (formal_parameters) body: (block (return_statement (lambda_expression parameters: (identifier) body: (block (local_variable_declaration (modifiers) type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal))) name: (identifier) arguments: (argument_list (string_literal))))) name: (identifier) arguments: (argument_list (method_reference (identifier) (identifier)))) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list)))))) (local_variable_declaration (modifiers) type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal))) name: (identifier) arguments: (argument_list (string_literal))))) name: (identifier) arguments: (argument_list (method_reference (identifier) (identifier)))) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list)))))) (local_variable_declaration (modifiers) type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) name: (identifier) arguments: (argument_list (lambda_expression parameters: (identifier) body: (binary_expression left: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal) (binary_expression left: (identifier) right: (decimal_integer_literal)))) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (method_reference (identifier) (identifier)))) name: (identifier) arguments: (argument_list)) right: (method_invocation object: (method_invocation object: (method_invocation object: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (method_reference (identifier) (identifier)))) name: (identifier) arguments: (argument_list)))))) name: (identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (unary_expression operand: (decimal_integer_literal)))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier)))))))))