#include <iostream>
#include <string>
using namespace std;
int main(int argc, char* argv[]){
if(argc){
string s;
for(int i = 1; i < argc; i++)
s += argv[i];
unsigned found = -1;
string replacer = s.substr(0, 3);
while((found = s.find("...")) < s.size() && found > 3)
s.replace(found, 3, replacer);
cout << s << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKGludCBhcmdjLCBjaGFyKiBhcmd2W10pewogICAgaWYoYXJnYyl7CiAgICAgICAgc3RyaW5nIHM7IAogICAgICAgIGZvcihpbnQgaSA9IDE7IGkgPCBhcmdjOyBpKyspCiAgICAgICAgICAgIHMgKz0gYXJndltpXTsKICAgICAgICAgICAgCiAgICAgICAgdW5zaWduZWQgZm91bmQgPSAtMTsKICAgICAgICBzdHJpbmcgcmVwbGFjZXIgPSBzLnN1YnN0cigwLCAzKTsKICAgICAgICB3aGlsZSgoZm91bmQgPSBzLmZpbmQoIi4uLiIpKSA8IHMuc2l6ZSgpICYmIGZvdW5kID4gMykKICAgICAgICAgICAgcy5yZXBsYWNlKGZvdW5kLCAzLCByZXBsYWNlcik7CiAgICAgICAgY291dCA8PCBzIDw8IGVuZGw7CiAgICB9CiAgICByZXR1cm4gMDsKfQ==