n = int(input()) l = 0 r = n + 1 l_ = 0 r_ = n c = 10 while r - l > 1: c -= 1 mid = (l + r) // 2 print("? {}".format(mid), flush=True) x = int(input()) if mid - l > x - l_: r = mid r_ = x else: l = mid l_ = x for _ in range(c): print("? 1", flush=True) print("Yes {} {}".format(l, r), flush=True)