import sys ##入力 N = int(input()) ##質問 for i in range(20): K = 1 print("? {}".format(K)) sys.stdout.flush() S = int(input()) ##回答 L = 1; R = N//2 print("! {} {}".format(L,R)) sys.stdout.flush()