#include #include "iostream" using namespace std; int main() { int d,e; vector m; cin >> d; for (int i=0; i <= d; i++) { cin >> e; m.push_back(e); } while (d>2){ if(m[d]!=0){ m[d-2] += m[d]; } d--; } if (m[2] == 0){ if (m[1] == 0) { cout << m[0] << endl; } else { cout << m[0]<< " " << m[1] <