#include <iostream>
#include <string>
#include <algorithm>
int main()
{
std::string s = "hello";
std::iter_swap(s.begin(), s.rbegin());
std::cout << s << '\n';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgppbnQgbWFpbigpCnsKICAgIHN0ZDo6c3RyaW5nIHMgPSAiaGVsbG8iOwogICAgc3RkOjppdGVyX3N3YXAocy5iZWdpbigpLCBzLnJiZWdpbigpKTsKICAgIHN0ZDo6Y291dCA8PCBzIDw8ICdcbic7Cn0K