for num in range(1000): print(f'{num:03d}') if input() == 'unlocked': break