while True:
    try:
        print(hex(int(input('What do you want to convert into hexadecimal? '))))
        print('')
    except (ValueError, TypeError):
        print('Invalid input')
        print('')
