def main(): N=int(input()) T=N*(N+1)//2 P=[] for i in range(N-1): print(f"? {i+1} {i+1}") S=int(input()) P.append(S) T-=S P.append(T) print("! ",end="") print(" ".join(map(str,P))) return main()