#include <bits/stdc++.h>
using namespace std;
int ask(int i, int j) {
  cout << '?' << ' ' << i << ' ' << j << endl;
  fflush(stdout);
  int res;
  cin >> res;
  return res;
}
int ar[5003];
int n;
int main() {
  cin >> n;
  for (int i = 1; i + 2 <= n; i += 3) {
    int a = ask(i, i + 1);
    int b = ask(i + 1, i + 2);
    int c = ask(i, i + 2);
    ar[i + 0] = (a + c - b) / 2;
    ar[i + 1] = (a + b - c) / 2;
    ar[i + 2] = (b + c - a) / 2;
  }
  for (int i = n; i % 3 != 0; i--) {
    ar[i] = ask(1, i) - ar[1];
  }
  cout << '!' << ' ';
  for (int i = 1; i <= n; i++) {
    cout << ar[i];
    if (i != n) cout << ' ';
  }
  return 0;
}
