def quest(l,r): print("?",l,r,flush=True) return int(input()) def answer(P): print("!",*P[1:]) exit() def solve(): N=int(input()) P=[0]*(N+1) old=N*(N+1)//2 for i in range(1,N): new=quest(i+1,N) P[i]=old-new old=new P[N]=N*(N+1)//2-sum(P) answer(P) #================================================== print(solve())