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