n=9 while n<1e4:n+=1;eval('<'.join(str(n)))and print(n)