#include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
int main()
{
string str, line;
vector<string> vec;
while(getline(cin, line))
{
for(auto &c : line)
{
if(!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))) c = ' ';
}
istringstream recode(line);
while(recode >> str)
{
vec.push_back(str);
}
}
int count = 0;
for(auto it = vec.crbegin(); it != vec.crend(); ++it)
{
cout << *it;
if(++count < vec.size()) cout << " ";
else cout << endl;
}
return 0;
}


京公网安备 11010502036488号