N = int(input()) sm = sum(range(N + 1)) print('?', 2, N) start = sm - int(input()) print('?', 1, N - 1) end = sm - int(input()) middle = [] prev = start l = 1 for r in range(2, N - 1): print('?', l, r) S = int(input()) middle.append(S - prev) prev = S middle.append(sm - (start + sum(middle) + end)) print('!', start, *middle, end)