def itoa(num, radix):
    """
    Convert int to a sts representation in an arbitrary base, up to 36.
    """
    result = ""
    while num > 0:
        result = "0123456789abcdefghijklmnopqrstuvwxyz" [num % radix] + result
        num //= radix
    return result