def hextoi(subject):
    """Given a string representing an integer in hexadecimal notation, return
    the integer in base 10 notation.
    """
    try:
        return int(subject, 16)
    except ValueError:
        return None
