//通俗易懂的解法哦
include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
int main()
{
string str;
getline(cin,str);
reverse(str.begin(),str.end());
stringstream ssin(str);
string s;
while(ssin >> s)
{
reverse(s.begin(),s.end());
cout << s << ' ';
}
return 0;
}