N = int(input()) __sum__ = sum(range(1, N + 1)) ans = [0] * N for i in range(N - 2): print(f"? {i + 2} {N}") A = int(input()) ans[i] = __sum__ - A __sum__ = A print(f"? 1 {N - 1}") ans[N - 1] = (1 + N) * N // 2 - int(input()) ans[N - 2] = __sum__ - ans[N - 1] print("! ", end="") for i in range(N): print(ans[i], end="") if i + 1 != N: print(" ", end="") print()