n = int(input()) cnt = [] class nibutan(): def __init__(self): self.n = n def __len__(self): return self.n def __getitem__(self,x): cnt.append(0) print('?',x+1,flush=True) z = int(input()) if z < x+1: return 1 else: return 0 import bisect ans = bisect.bisect_right(nibutan(),0) while len(cnt) != 10: cnt.append(0) print('?',1,flush=True) z = int(input()) print('Yes',ans,ans+1,flush=True)