let n = Scanf.scanf "%d" (fun x -> x)
let a = Array.init n (fun _ -> Scanf.scanf " %d" (fun x -> x))
let () =
  for i = 0 to (n-1)/2 do
    Printf.printf "%d " a.(n-1-2*i)
  done;
  let o = n mod 2 in
  for i = 0 to n/2-1 do
    Printf.printf "%d " a.(2*i + o)
  done;
  print_newline ()