#www.bugku.com
import hashlib
for i in range(0,10000):
	if(hashlib.md5(str(i)).hexdigest().startswith('6f4')):
		print i