import sys for i in range(1000, 2000): print(str(i)[1:]) sys.stdout.flush()