n = int(input()) def ask(l, r): print("?", l, r, flush=True) return int(input()) x = ask(2, n) P = [0] * n P[0] = n * (n + 1) // 2 - x tot = P[0] for r in range(2, n): x = ask(1, r) P[r - 1] = x - tot tot = x P[-1] = n * (n + 1) // 2 - tot print("!", *P)