n=0 while n<3e3:n+=1;10**sum(5739180//5**int(c)%5for c in str(n))<=n==print(n)