fork download
  1. import sys
  2. dictionary = {'01': '0', '02': '1', '03': '2', '52': 'A', '53': 'B', '54': 'C'}
  3. print("".join([dictionary[x] for x in sys.stdin.read().split(" ")]))
Success #stdin #stdout 0.03s 9984KB
stdin
01 02 03 01 01 01 52 53 54 01
stdout
012000ABC0