int n;int m;int f;for n=9to 9876{m=n;while m mod 10<(m/10)mod 10{m=m/10;if m<10{print n;}}}