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

void main() {
  readln();
  auto inp = readln().chomp.split.map!(to!int);
  int[] b;
  for(int i; i<inp.length; i++){
    auto a = inp[i];
    if((inp.length+a)%2==1){b ~= a;}
    else{b = a~b;}
  }
  b.map!(to!string).join(" ").writeln;
}