n=10 while n<9000:*s,=str(n);sorted(set(s))==s==print(n);n+=1