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