N = int(input()) SP = N * (N+1) //2 P = [] for i in range(1,N): print("?",i,i) S = int(input()) P.append(S) SP -= S P.append(SP) print("!",*P)