#include <bits/stdc++.h>
using namespace std;
int main() { int a[100], n = 0; while (cin >> a[n]) { n++; if (cin.get() == '\n') { break; } }
for (int i = n - 1; 0 <= i; i--) { cout << a[i] << " "; } return 0;
}