print("? 0 0");a=int(input());print("? 0 100");b=int(input()) for i in range(101): [print("!",i,j)for j in range(101)if i*i+j*j==a and i*i+(100-j)**2==b]