// This file is a "Hello, world!" in D language by DMD for wandbox.
import std.stdio;
import std.algorithm;
import std.conv;
import std.string;
import std.array;
import std.range;

void main()
{
  int n = readln.chomp.to!int;
  int[] a = readln.chomp.split.map!(to!int).array;
  int[] b;
  foreach (i, v; a) {
    if (i % 2) {
      b ~= v;
    } else {
      b = v ~ b;
    }
  }
  if (n % 2 == 0) {
    b = b.retro.array;
  }
  b.map!(to!string).join(" ").writeln;
}

// DMD reference:
//   https://dlang.org/dmd-linux.html

// D language references:
//   https://dlang.org
//   http://www.kmonos.net/alang/d/ ( Japanese )
