local n=io.read("*n")
local b={}
if n%2==0 then
    for i=1,n do
        if i%2==1 then
            table.insert(b,io.read("*n"))
        else
            table.insert(b,1,io.read("*n"))
        end
    end
else
    for i=1,n do
        if i%2==1 then
            table.insert(b,1,io.read("*n"))
        else
            table.insert(b,io.read("*n"))
        end
    end
end
print(table.concat(b," "))