T,a,b,c,d=map(int,input().split()) l=0 r=T while True: m=(l+r)//2 print('?',m,flush=True) x,y=map(int,input().split()) s0=abs(x-a)+abs(y-b) s1=abs(x-c)+abs(y-d) if s0==s1: print('!',m,flush=True) exit() if s0