#include <iostream> using namespace std; int main() { string s, res; while(cin >> s) { s = s + " " + res; res = s; } cout << res << endl; return 0; }