for w in raw_input().split():print''.join(' etianmsurwdkgohvf,l.pjbxcyzq'[reduce(lambda n,c:n*2+1+(c<'.'),m,0)%32]for m in w.split('/')),