import hashlib


def hashit(value):
    """Hash any value by applying md5 to the stringified value.
    Returns an integer.
    """
    if isinstance(value, int):
        return abs(value)
    h = hashlib.md5(str(value).encode())
    return abs(int(h.hexdigest()[:14], 16))