import sysdictionary = {'01': '0', '02': '1', '03': '2', '52': 'A', '53': 'B', '54': 'C'}print("".join([dictionary[x] for x in sys.stdin.read().split(" ")]))
01 02 03 01 01 01 52 53 54 01
012000ABC0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!