# a slight reduction in code size was made possible by the 
# discovery of the built-in hex() function

def string_to_hex(num):
    return hex(num)[2:]
