i=9 exec"i+=1;l=list(`i`)\nif l==sorted(set(l))[::-1]:print i\n"*9999