#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
string str = "hogehoge";
reverse(str.begin(), str.end());
cout << str << endl;
return 0;
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwppbnQgbWFpbigpIHsKICAgICAgICBzdHJpbmcgc3RyID0gImhvZ2Vob2dlIjsKICAgICAgICByZXZlcnNlKHN0ci5iZWdpbigpLCBzdHIuZW5kKCkpOwogICAgICAgIGNvdXQgPDwgc3RyIDw8IGVuZGw7CglyZXR1cm4gMDsKfQ==