n = 200 for i in range(1,n+1): a = [int(j) for j in str(i)] b = sum(a) if b == 9 and a == sorted(a) and len(a)==len(set(a)): print(i)