#include <iostream>
#include <string>
#include <algorithm>
int main()
{
std::string s("abcdefg");
std::reverse(s.begin(), s.end());
std::cout << s << "\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgoKaW50IG1haW4oKQp7CiAgICBzdGQ6OnN0cmluZyBzKCJhYmNkZWZnIik7CiAgICBzdGQ6OnJldmVyc2Uocy5iZWdpbigpLCBzLmVuZCgpKTsKICAgIHN0ZDo6Y291dCA8PCBzIDw8ICJcbiI7CiAgICByZXR1cm4gMDsKfQo=