#include <iostream> using namespace std; int main() { string a[100]; int n = 0; while (cin >> a[n]) n ++ ; for (int i = n - 1; i >= 0; i -- ) cout << a[i] << ' '; return 0; }