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