#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <string.h>
using namespace std;
void func(string * str)
{
reverse(str->begin(), str->end());
}
int main(void)
{
string str("pop'n candy!");
cout << str << endl;
func( &str );
cout << str << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8c3RyaW5nLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBmdW5jKHN0cmluZyAqIHN0cikKewogICAgcmV2ZXJzZShzdHItPmJlZ2luKCksIHN0ci0+ZW5kKCkpOwp9CgppbnQgbWFpbih2b2lkKQp7CiAgICBzdHJpbmcgc3RyKCJwb3AnbiBjYW5keSEiKTsKICAgIGNvdXQgPDwgc3RyIDw8IGVuZGw7CiAgICBmdW5jKCAmc3RyICk7CiAgICBjb3V0IDw8IHN0ciA8PCBlbmRsOwoKICAgIHJldHVybiAwOwp9Cg==