a[9];char*p;main(c){for(;p=gets(a);puts(a))for(++p;p[1]*p[2];*p++=c)c=*p++,*(p-1)=*p;}