#include using namespace std; string read() { string str; cin >> str; if(str == "end") { return ""; } return read() + str + "\n"; } int main() { cout << read(); return 0; }