open Str

let read_list () =
  split (regexp " +") (read_line ())

let split_eo ls =
  let rec iter os es = function
      [] -> (os, es)
    | [x] -> (x::os, es)
    | x::y::ys -> iter (x::os) (y::es) ys
  in iter [] [] ls
          
let () =
  let n = read_int () in
  let xs = read_list () in
  let (os, es) = split_eo xs in
  (if n mod 2 = 0 then es @ (List.rev os) else os @ (List.rev es)) |> String.concat " " |> print_endline
