#!/usr/bin/python3
try:
    while True:
        cols = input().split('\t')
        if len(cols) == 2 and '<' not in cols[1] and cols[0] and  all(c in '0123456789abcdefABCDEF' for c in cols[0]):
            print(chr(int(cols[0], 16)) + ' ' + cols[0] + ' ' + cols[1])
except EOFError:
    pass