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