public static void main ( String [ ] args ) throws IOException {
  br = new BufferedReader ( new InputStreamReader ( System . in ) ) ;
  st = readLine ( ) ;
  int n = tokenInt ( ) ;
  st = readLine ( ) ;
  int [ ] seq = new int [ n ] ;
  int i = 0 ;
  while ( st . hasMoreTokens ( ) ) {
    seq [ i ] = tokenInt ( ) ;
    i ++ ;
  }
  System . out . println ( new Solver ( ) . solve ( n , seq ) ) ;
}

public static void main ( String [ ] args ) throws IOException { br = new BufferedReader ( new InputStreamReader ( System . in ) ) ; st = readLine ( ) ; int n = tokenInt ( ) ; st = readLine ( ) ; int [ ] seq = new int [ n ] ; int i = 0 ; while ( st . hasMoreTokens ( ) ) { seq [ i ] = tokenInt ( ) ; i ++ ; } System . out . println ( new Solver ( ) . solve ( n , seq ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list)))) (expression_statement (update_expression (identifier))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (object_creation_expression type: (type_identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list (identifier) (identifier))))))))