hexToBinArray = {'0': '0000', '1': '0001', '2': '0010', '3': '0011',
                 '4': '0100', '5': '0101', '6': '0110', '7': '0111',
                 '8': '1000', '9': '1001', 'A': '1010', 'B': '1011',
                 'C': '1100', 'D': '1101', 'E': '1110', 'F': '1111'}

htba = hexToBinArray

def bitmap(string):
    hexList = string.split(" ")
    i = 0

    while i < len(hexList):
        hexList[i] = list(hexList[i])
        i += 1

    i = 0

    while i < len(hexList):
        p1 = htba[hexList[i][0]]
        p2 = htba[hexList[i][1]]
        fi = p1+p2
        hexList[i] = fi
        i += 1

    i = 0

    while i < len(hexList):
        temp = ''
        for value in hexList[i]:
            if value == '0':
                temp = temp + ' '
            else:
                temp = temp + 'x'
        hexList[i] = temp
        i += 1

    for x in hexList:
        print(x)