#include <iostream>
#include <string>
using namespace std;
string fun(string t, string s = "x", int r = 1) {
while(--r)
s += s;
t = t + s;
return s;
}
int main() {
string name = "a";
cout << fun(name);
cout << name;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwogICAgCnN0cmluZyBmdW4oc3RyaW5nIHQsIHN0cmluZyBzID0gIngiLCBpbnQgciA9IDEpIHsKICAgIHdoaWxlKC0tcikKICAgICAgICBzICs9IHM7CiAgICB0ID0gdCArIHM7CiAgICByZXR1cm4gczsKfQogICAgCmludCBtYWluKCkgewogICAgc3RyaW5nIG5hbWUgPSAiYSI7CiAgICBjb3V0IDw8IGZ1bihuYW1lKTsKICAgIGNvdXQgPDwgbmFtZTsKICAgIHJldHVybiAwOwp9Cgo=