#include <bits/stdc++.h>
using namespace std;
int ans[5009], sum = 0;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int upto = (n / 3) * 3;
  int a, b, c, d, i;
  for (i = 0; i < upto; i += 3) {
    cout << "? " << (i + 2) << " " << (i + 3) << endl;
    cin >> a;
    cout << "? " << (i + 1) << " " << (i + 3) << endl;
    cin >> b;
    cout << "? " << (i + 2) << " " << (i + 1) << endl;
    cin >> c;
    int d = a + b + c;
    d /= 2;
    ans[i + 1] = d - a;
    ans[i + 2] = d - b;
    ans[i + 3] = d - c;
  }
  for (i = 1; upto + i <= n; ++i) {
    cout << "? 1 " << upto + i << endl;
    cin >> a;
    ans[upto + i] = a - ans[1];
  }
  cout << "!";
  for (i = 1; i <= n; ++i) {
    cout << " " << ans[i];
  }
  cout << endl;
  return 0;
}
