def main(): for i in range(1000): print(f'{i:03}', flush=True) if input() == 'unlocked': break if __name__ == '__main__': main()