public static void main ( String arg [ ] ) throws IOException {
  InputStreamReader isr = new InputStreamReader ( System . in ) ;
  BufferedReader br = new BufferedReader ( isr ) ;
  StringTokenizer token = new StringTokenizer ( " " ) ;
  int n = 0 ;
  int arr [ ] ;
  int i = 0 ;
  int j = 0 ;
  int min = Integer . MAX_VALUE ;
  n = Integer . parseInt ( br . readLine ( ) ) ;
  arr = new int [ n ] ;
  token = new StringTokenizer ( br . readLine ( ) ) ;
  for ( j = 0 ;
  j <= n - 1 ;
  j ++ ) {
    arr [ j ] = Integer . parseInt ( token . nextToken ( ) ) ;
    if ( arr [ j ] < min ) min = arr [ j ] ;
  }
  pw . println ( getResult ( arr , n , min ) ) ;
  pw . close ( ) ;
}

public static void main ( String arg [ ] ) throws IOException { InputStreamReader isr = new InputStreamReader ( System . in ) ; BufferedReader br = new BufferedReader ( isr ) ; StringTokenizer token = new StringTokenizer ( " ▁ " ) ; int n = 0 ; int arr [ ] ; int i = 0 ; int j = 0 ; int min = Integer . MAX_VALUE ; n = Integer . parseInt ( br . readLine ( ) ) ; arr = new int [ n ] ; token = new StringTokenizer ( br . readLine ( ) ) ; for ( j = 0 ; j <= n - 1 ; j ++ ) { arr [ j ] = Integer . parseInt ( token . nextToken ( ) ) ; if ( arr [ j ] < min ) min = arr [ j ] ; } pw . println ( getResult ( arr , n , min ) ) ; pw . close ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (expression_statement (assignment_expression left: (identifier) right: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) consequence: (expression_statement (assignment_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))