#21273: python 3


jerjer920813@gmail.com (YJ)


n = int(input())
while n >= 1:
print(n)
n //= 10