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