#include <iostream>
#include <sstream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
string sentence, temp;
stringstream ss;
vector<string> words;
getline(cin, sentence);
ss << sentence;
while(ss >> temp) {
words.push_back(temp);
}
vector<string> res(words.rbegin(), words.rend());
for (auto &it : res)
cout << it<<" ";
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号