local n = io.read("*n")
local t = {}
for i = 1, n do
  if(i % 2 == 1) then
    table.insert(t, io.read("*n"))
  else
    table.insert(t, 1, io.read("*n"))
  end
end
if(n % 2 == 0) then
  io.write(t[1])
  for i = 2, n do
    io.write(" "..t[i])
  end
  io.write("\n")
else
  io.write(t[n])
  for i = n - 1, 1, -1 do
    io.write(" "..t[i])
  end
  io.write("\n")
end
