i=input
for t in[0]*int(i()):
 print("? 0 1\n? 1 1",flush=1<2)
 e,f=float(i()),float(i())**2/2
 print("!",int(e*e*f/(f+(e-f**.5)**2)*4+.1))
