#include #include using namespace std; main() { deque lines; int i; string s; while (!cin.eof()) { getline(cin, s); if (!cin.eof()) lines.push_front(s); } for (i = 0; i < lines.size(); i++) { cout << lines[i] << endl; } }