from itertools import combinations_with_replacement as cwr

for xs in cwr(range(9, -1, -1), 10):
	print(*xs, sep='')