f=lambda s:s and[s+n for n in'0123456789']+f(s[:-1])or[]
print(f(input()))