N = int(input()) all_sum = (N * (1 + N)) // 2 P = [] ever_sum = 0 for l in range(2, N): print(f"? {l} {N}") kukanwa = int(input()) P.append(all_sum - kukanwa - ever_sum) ever_sum += P[-1] print(f"? {1} {N - 1}") kukanwa = int(input()) P.append(all_sum - kukanwa) print("!" , *P)