n=0 exec"n+=1\nif 10**sum(5739180/5**int(c)%5for c in`n`)<=n:print n\n"*3000