#include <iostream> #include <string> using namespace std; string str[200]; int main(void) { int cnt = 0; while (cin >> str[cnt]) cnt++; for (int i = cnt - 1; i >= 0; i--) { cout << str[i] << ' '; } cout << endl ; }