import hashlib


def hash100(s: str):
    """
    Hash a string into 1~100.
    Useful when you split a dataset into subsets.
    """
    h = hashlib.md5(s.encode())
    return int(h.hexdigest(), base=16) % 100 + 1