I,h=input,100 print("?",h) y=int(I()) if y==99: A,B=99,h else: print("?",99-y) B=int(I())+1 A=(y+(B-1)*h)%B print("!",A,B)