#include<iostream> using namespace std; int main() { char a[105][105]; int i = 0; while(cin >> a[i]) i ++; while(i --) cout << a[i] << " "; return 0; }