let n = Scanf.scanf " %d" (+) 0
let a_s = Array.init n @@ fun _ -> Scanf.scanf " %d" (+) 0
let ps = [|[]; []|]
let _ = Array.iteri (fun i a -> ps.(i mod 2) <- a :: ps.(i mod 2)) a_s;
  List.(ps.(1 - n mod 2) @ rev @@ ps.(n mod 2) |> iteri (fun i n -> Printf.printf (if i = 0 then "%d" else " %d") n)); print_newline ()