-
n = 11 s = '' while True: x , y = divmod(n,2) s += str(y) if x < 2: s += str(x) break n = x print(s[::-1]) 1011