#include<bits/stdc++.h> using namespace std; int main() { string str, res; while(cin >> str) { str += " " +res; res = str; } res = res.substr(0, res.length() - 1); cout << res << endl; return 0; }