# yukicoder No.304 鍵(1) # 総当たり for i in range(1000): print("{:03d}".format(i), flush = True) if input() == "unlocked": break