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