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