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

void main() {
    auto n = readln.chomp.to!int;
    auto as = readln.split.to!(long[]);
    import std.container;

    DList!long b;

    foreach (i, a; as) {
        if (i & 1) b.insertFront(a);
        else b.insertBack(a);
    }

    if (n & 1) b.array.retro.map!(to!string).join(" ").writeln;
    else b.array.map!(to!string).join(" ").writeln;
}

