import std.algorithm,
       std.string,
       std.range,
       std.array,
       std.stdio,
       std.conv;

void main() {
  ulong n = readln.chomp.to!ulong;
  ulong[] a = readln.chomp.split.to!(ulong[]);

  ulong[] odds,
          evens;

  foreach (idx, elem; a) {
    if (idx % 2 == 0) {
      evens ~= elem;
    } else {
      odds ~= elem;
    }
  }

  if (n % 2 != 0) {
    std.algorithm.reverse(evens);
    foreach (elem; evens) { writef("%d ", elem); }
    foreach (elem; odds)  { writef("%d ", elem); }
  } else {
    std.algorithm.reverse(odds);
    foreach (elem; odds)  { writef("%d ", elem); }
    foreach (elem; evens) { writef("%d ", elem); }
  }
  writeln;
}
