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