#include <iostream>
#include <string>
//#include <fstream>
#include <sstream>
#include <algorithm>
std:: string reversed( std:: string word) {
std:: reverse ( word.begin ( ) , word.end ( ) ) ;
return word;
}
int main( ) {
//std::ifstream in("input.txt");
//std::ofstream out("output.txt");
std:: istream & in = std:: cin ;
std:: ostream & out = std:: cout ;
std:: string line, word;
while ( std:: getline ( in, line) ) {
std:: istringstream iss( line) ;
if ( iss >> word) {
out << reversed( word) ;
while ( iss >> word) {
out << " " << reversed( word) ;
}
}
out << std:: endl ;
}
return 0 ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgovLyNpbmNsdWRlIDxmc3RyZWFtPgojaW5jbHVkZSA8c3N0cmVhbT4KI2luY2x1ZGUgPGFsZ29yaXRobT4KCnN0ZDo6c3RyaW5nIHJldmVyc2VkKHN0ZDo6c3RyaW5nIHdvcmQpIHsKCXN0ZDo6cmV2ZXJzZSh3b3JkLmJlZ2luKCksIHdvcmQuZW5kKCkpOwoJcmV0dXJuIHdvcmQ7Cn0KCmludCBtYWluKCkgewoJLy9zdGQ6Omlmc3RyZWFtIGluKCJpbnB1dC50eHQiKTsKCS8vc3RkOjpvZnN0cmVhbSBvdXQoIm91dHB1dC50eHQiKTsKCXN0ZDo6aXN0cmVhbSAmaW4gPSBzdGQ6OmNpbjsKCXN0ZDo6b3N0cmVhbSAmb3V0ID0gc3RkOjpjb3V0OwoJc3RkOjpzdHJpbmcgbGluZSwgd29yZDsKCgl3aGlsZSAoc3RkOjpnZXRsaW5lKGluLCBsaW5lKSkgewoJCXN0ZDo6aXN0cmluZ3N0cmVhbSBpc3MobGluZSk7CgkJaWYgKGlzcyA+PiB3b3JkKSB7CgkJCW91dCA8PCByZXZlcnNlZCh3b3JkKTsKCQkJd2hpbGUgKGlzcyA+PiB3b3JkKSB7CgkJCQlvdXQgPDwgIiAiIDw8IHJldmVyc2VkKHdvcmQpOwoJCQl9CgkJfQoJCW91dCA8PCBzdGQ6OmVuZGw7Cgl9CgoJcmV0dXJuIDA7Cn0=
stdin
RXhwZWN0aW5nIHRoZSB3b3JsZCB0byB0cmVhdCB5b3UgZmFpcmx5IGJlY2F1c2UgeW91IGFyZSBhIGdvb2QgcGVyc29uIGlzIGEgbGl0dGxlIGxpa2UgZXhwZWN0aW5nIHRoZSBidWxsIG5vdCB0byBhdHRhY2sgeW91IGJlY2F1c2UgeW91IGFyZSBhIHZlZ2V0YXJpYW4u
Expecting the world to treat you fairly because you are a good person is a little like expecting the bull not to attack you because you are a vegetarian.