public static void main ( String args [ ] ) {
  input ( ) ;
  ArrayList < Integer > b = new ArrayList < > ( ) ;
  if ( N % 2 == 0 ) {
    for ( int i = N - 1 ;
    i >= 0 ;
    i -= 2 ) b . add ( arrayList . get ( i ) ) ;
    for ( int i = 0 ;
    i < N ;
    i += 2 ) b . add ( arrayList . get ( i ) ) ;
  }
  else {
    for ( int i = N - 1 ;
    i >= 0 ;
    i -= 2 ) b . add ( arrayList . get ( i ) ) ;
    for ( int i = 1 ;
    i < N ;
    i += 2 ) b . add ( arrayList . get ( i ) ) ;
  }
  for ( int i = 0 ;
  i < N ;
  i ++ ) {
    System . out . print ( b . get ( i ) + " " ) ;
  }
}

public static void main ( String args [ ] ) { input ( ) ; ArrayList < Integer > b = new ArrayList < > ( ) ; if ( N % 2 == 0 ) { for ( int i = N - 1 ; i >= 0 ; i -= 2 ) b . add ( arrayList . get ( i ) ) ; for ( int i = 0 ; i < N ; i += 2 ) b . add ( arrayList . get ( i ) ) ; } else { for ( int i = N - 1 ; i >= 0 ; i -= 2 ) b . add ( arrayList . get ( i ) ) ; for ( int i = 1 ; i < N ; i += 2 ) b . add ( arrayList . get ( i ) ) ; } for ( int i = 0 ; i < N ; i ++ ) { System . out . print ( b . get ( i ) + " ▁ " ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier) dimensions: (dimensions))) body: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (assignment_expression left: (identifier) right: (decimal_integer_literal)) body: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (assignment_expression left: (identifier) right: (decimal_integer_literal)) body: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))))))) alternative: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (decimal_integer_literal)))) condition: (binary_expression left: (identifier) right: (decimal_integer_literal)) update: (assignment_expression left: (identifier) right: (decimal_integer_literal)) body: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (assignment_expression left: (identifier) right: (decimal_integer_literal)) body: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))) right: (string_literal)))))))))