I = "abcdefghijklmnopqrstuvwxyz" O = "cqlmdrstfxyzbanopuvweghijk" S = input() ans = "" for s in S: ans += O[I.index(s)] print(ans)