#include <iostream>
#include <string>
using namespace std;
int main()
{
string s = "fhigkaigibjhmhlskmg";
char f = 'g';
char rep = '@';
int pos = string::npos;
while((pos = s.find(f)) != string::npos)
{
s[pos] = rep;
}
cout<<s<<endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CiAgICBzdHJpbmcgcyA9ICJmaGlna2FpZ2liamhtaGxza21nIjsKICAgIGNoYXIgZiA9ICdnJzsKICAgIGNoYXIgcmVwID0gJ0AnOwogICAgaW50IHBvcyA9IHN0cmluZzo6bnBvczsKICAgIHdoaWxlKChwb3MgPSBzLmZpbmQoZikpICE9IHN0cmluZzo6bnBvcykKICAgIHsKICAgICAgICBzW3Bvc10gPSByZXA7CiAgICB9CiAgICBjb3V0PDxzPDxlbmRsOwp9