#include inline long nextInt(void) { long temp; std::cin >> temp; return temp; } int main() { std::string str; std::vector< std::string > ans; std::vector< char > temp; std::cin >> str; for(int i = 0; i < str.size(); ++i) { temp.clear(); if( (str[i] & 0x80) == 0x00 ) { temp.push_back(str[i]); } else if( (str[i] & 0xe0) == 0xc0 ) { temp.push_back(str[i]); ++i; temp.push_back(str[i]); } else if( (str[i] & 0xf0) == 0xe0 ) { temp.push_back(str[i]); ++i; temp.push_back(str[i]); ++i; temp.push_back(str[i]); } else if( (str[i] & 0xf8) == 0xf0 ) { temp.push_back(str[i]); ++i; temp.push_back(str[i]); ++i; temp.push_back(str[i]); ++i; temp.push_back(str[i]); } else if( (str[i] & 0xfc) == 0xf8 ) { temp.push_back(str[i]); ++i; temp.push_back(str[i]); ++i; temp.push_back(str[i]); ++i; temp.push_back(str[i]); ++i; temp.push_back(str[i]); } temp.push_back('\0'); ans.push_back( &temp[0] ); } for(int i = ans.size()-1; i >= 0; --i) { std::cout << ans[i]; } std::cout << std::endl; return 0; }