(t:=lambda v:v and((yield v%100),(yield from t(v//100)))) print(*t(12345)) print(list(t(12345678))[::-1])