#include <iostream>
#include <vector>
using namespace std;
int main() {
vector <double> sequence, result_sequence;
double term_of_sequence;
while (cin >> term_of_sequence){
sequence.push_back(term_of_sequence);
}
for (int i = 0; i < sequence.size() / 2; i++){
result_sequence.push_back(sequence[i]);
result_sequence.push_back(sequence[sequence.size() - 1 - i]);
}
for (int i = 0; i < result_sequence.size(); i++){
cout << result_sequence[i] << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogCmludCBtYWluKCkgewoJdmVjdG9yIDxkb3VibGU+IHNlcXVlbmNlLCByZXN1bHRfc2VxdWVuY2U7Cglkb3VibGUgdGVybV9vZl9zZXF1ZW5jZTsKCXdoaWxlIChjaW4gPj4gdGVybV9vZl9zZXF1ZW5jZSl7CgkJc2VxdWVuY2UucHVzaF9iYWNrKHRlcm1fb2Zfc2VxdWVuY2UpOwoJfQoJZm9yIChpbnQgaSA9IDA7IGkgPCBzZXF1ZW5jZS5zaXplKCkgLyAyOyBpKyspewoJCXJlc3VsdF9zZXF1ZW5jZS5wdXNoX2JhY2soc2VxdWVuY2VbaV0pOwoJCXJlc3VsdF9zZXF1ZW5jZS5wdXNoX2JhY2soc2VxdWVuY2Vbc2VxdWVuY2Uuc2l6ZSgpIC0gMSAtIGldKTsKCX0KCWZvciAoaW50IGkgPSAwOyBpIDwgcmVzdWx0X3NlcXVlbmNlLnNpemUoKTsgaSsrKXsKCQljb3V0IDw8IHJlc3VsdF9zZXF1ZW5jZVtpXSA8PCAiICI7Cgl9CglyZXR1cm4gMDsKfQ==