#!/usr/bin/env python3 # -*- coding: utf-8 -*- SAMPLES = ( ( "pfnovu", "orange" ), ( "axqwuf", "cipher" ), ( "mbgrihcdejkolsty", "bqsuftlmdxynzvwj"), ) def main(): d = {} for cipher, plain in SAMPLES: for c, p in zip(cipher, plain): d[c] = p if 0: print("".join(sorted(d.keys()))) print("".join(sorted(d.values()))) d["z"] = "k" trans = str.maketrans(d) S = input() ans = S.translate(trans) print(ans) if __name__ == "__main__": main()