(lambda x: [print(x) or (x := x // 10) for _ in iter(lambda: x > 0, False)])(int(input()))
要python3.8以上;ZeroJurge是3.6.9,改做法
n = int(input()); [print(n // 10**i) for i in range(len(str(n)))]