#include <iostream>
using namespace std;
int main() {
int n;
int tab[1000];
cin >> n;
for(int i=0;i<n;i++) {
cin >> tab[i];
}
for(int i=1;i<n;i+=2) {
cout << tab[i] << " ";
}
for(int i=0;i<n;i+=2) {
cout << tab[i] << " ";
}
cout << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCWludCBuOwoJaW50IHRhYlsxMDAwXTsKCWNpbiA+PiBuOwoJZm9yKGludCBpPTA7aTxuO2krKykgewoJCWNpbiA+PiB0YWJbaV07Cgl9Cglmb3IoaW50IGk9MTtpPG47aSs9MikgewoJCWNvdXQgPDwgdGFiW2ldIDw8ICIgIjsKCX0KCWZvcihpbnQgaT0wO2k8bjtpKz0yKSB7CgkJY291dCA8PCB0YWJbaV0gPDwgIiAiOwoJfQoJY291dCA8PCBlbmRsOwoKCXJldHVybiAwOwp9