f = lambda n:`n-12`==`n`[0]*3

for n in range(1, 10000):
	if f(n):
		print n