for n in range(1000): print('{:03}'.format(n)) if input() == 'unlocked': break