for i in range(0, 1000): print('{0:03d}'.format(i)) if input() == "unlocked": break