N = int(input()) S = (N * (N+1))//2 ANS = ['!'] for l in range(2,N): tmp = ['?',l,N] print(*tmp) s = int(input()) ANS.append(S-s) S-=ANS[-1] tmp = ['?',1,N-1] print(*tmp) s = int(input()) last = ((N * (N+1))//2 -s) ANS.append(S-last) ANS.append(last) print(*ANS)