#include #include using namespace std; main() { deque lh; string s; int i; i = 0; while (getline(cin, s)) { lh.push_back(s); i++; if (i%2 == 0) lh.erase(lh.begin()); } for (i = 0; i < lh.size(); i++) { cout << lh[i] << endl; } }