print("? 0 0",flush=1) a = int(input()) print("? 0 100",flush=1) b = int(input()) for i in range(101): for j in range(101): if i*i+j*j==a and i*i+(100-j)**2==b: print(f"! {i} {j}",flush=1)