N = int(input()) base = (N + 1) * N // 2 ans = [] def check(l, r): print(f"? {l} {r}", flush=True) ret = int(input()) return ret first2 = check(2, N) first = base - first2 for r in range(N - 1, 1, -1): res = check(1, r) val = base - res ans.append(str(val)) base = res ans.append(str(base - first)) ans.append(str(first)) result = ' '.join(ans[::-1]) print(f"! {result}")