var i,k:word;begin for i:=10to 9876do begin k:=i;while k div 10mod 10>k mod 10do k:=k div 10;if k<10then writeln(i)end end.