print("?",100,flush=True) mod=int(input()) if mod==99: print("!",99,100,flush=True) else: print("?",99-mod,flush=True) b=int(input())+1 for a in range(1,b): if (a+100)%b==mod: print("!",a,b,flush=True) exit()