#include <iostream>
using namespace std;
int main()
{
int n, a;
cin >> n;
for (int i = 0; i < n; i++)
{
cin >> a;
if (i % 2 == 0)
cout << a << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CglpbnQgbiwgYTsKCWNpbiA+PiBuOwoJZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspCgl7CgkJY2luID4+IGE7CgkJaWYgKGkgJSAyID09IDApCgkJCWNvdXQgPDwgYSA8PCAiICI7Cgl9CglyZXR1cm4gMDsKfQ==