#include <iostream>
#include <string>
using namespace std;
int main() {
string s = "quick:brown:fox:jumps:over:the:lazy:dog";
int i = 0;
for (;;) {
i = s.find(":", i);
if (i == string::npos) {
break;
}
s.replace(i, 1, "%%");
}
cout << s << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJc3RyaW5nIHMgPSAicXVpY2s6YnJvd246Zm94Omp1bXBzOm92ZXI6dGhlOmxhenk6ZG9nIjsKICAgIGludCBpID0gMDsKICAgIGZvciAoOzspIHsKICAgICAgICBpID0gcy5maW5kKCI6IiwgaSk7CiAgICAgICAgaWYgKGkgPT0gc3RyaW5nOjpucG9zKSB7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgICBzLnJlcGxhY2UoaSwgMSwgIiUlIik7CiAgICB9CiAgICBjb3V0IDw8IHMgPDwgZW5kbDsKCXJldHVybiAwOwp9