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