from typing import List


def _split_int(i: int, base: int) -> List[int]:
    """split int to digits"""
    result = []
    while i:
        i, digit = divmod(i, base)
        result.insert(0, digit)
    return result