x1 = 3 print(f"? {x1}", flush=True) y1 = int(input()) x2 = 100 print(f"? {x2}", flush=True) y2 = int(input()) for a in range(0, 100): for b in range(a+1, 101): if (a+x1)%b==y1 and (a+x2)%b==y2: print(f"! {a} {b}", flush=True) exit()