#include
#include
using namespace std;
int main() {
//freopen("input.txt", "rt", stdin);
//freopen("output.txt", "wt", stdout);
int a[100], n;
cin >> n;
for (int i = 0; i < n; i++) cin >> a[i];
for (int i = 0; i < (n + 1) / 2; i++) cout << a[i * 2] << ' ';<br>
return 0;
}