import os M=dict([(x[1:],x[0])for x in '''b-... ,--..-- c-.-. f..-. h.... j.--- l.-.. p.--. q--.- v...- x-..- y-.-- z--.. g--. r.-. s... u..- w.-- d-.. k-.- o--- a.- m-- i.. n-. t- e. ..-.-.- '''.split("\n")]) for w in os.read(0,9999)[:-1].replace(" ","/ /").split("/"):os.write(1,M[w])