char*p;main(k,s){for(;k>2||gets(p=s,k=13,p&&puts(p));)putchar(index("._~",p[k])?k-=2,46:*p++);}