while True:
print(*input())
break
ну или серьезно: n = 4532357
tempN = n
length = 0
while tempN:
length += 1
tempN //= 10
while n:
length -= 1
print(n // 10 ** length, end=" ")
n %= 10 ** length
n = 4532357
while n >= 1:
print(n % 10)
n = n // 10