d = {'うし':'a','うあ':'b','ん笑':'c','たぷ':'d','くん':'e','ぷに':'f','しき':'g','あく':'h','うく':'i','あ笑':'j','うん':'k','しぷ':'l','うき':'m','く笑':'n','う笑':'o','にき':'p','ぷ笑':'q','たき':'r','たん':'s','しあ':'t','しん':'u','うう':'v','うた':'w','き笑':'x','にく':'y','笑笑':'z'} res = '' S = list(input().split()) while S: tmp = S.pop(0)+S.pop(0) res += str(ord(d[tmp])-ord('a')+1) print(res)