from typing import List


def ue(i:int) -> List[int]:
    """Exponential-Golomb code for positive i - https://en.wikipedia.org/wiki/Exponential-Golomb_coding"""
    i = i + 1
    r = []
    while i > 0:
        r.insert(0, i % 2)
        i = i >> 1
    if len(r) == 0:
        r = [0]
    r0 = [0] * (len(r) - 1)
    r0.extend(r)
    return r0