# a[i] = i n = int(input()) ub = n # NG lb = 0 # OK tim = 0 while ub - lb > 1: t = (ub + lb) // 2 print(f"? {t}") tim += 1 x = int(input()) if x <= t: lb = t else: ub = t assert tim <= 10 while tim < 10: print(f"? {1}") x = int(input()) tim += 1 if lb == 0: print("No") else: print("Yes",lb,lb+1)