s[];char*p=s+17,*r;f(c){*p++-58?f(*p),*r=c,r+=2:0;}main(i){for(gets(p),wmemset(s,774909488,16);*p;f(*p))r=s+16-i++*2;printf("%sip6.arpa.",s);}