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