#include <bits/stdc++.h>
using namespace std;
int n, x, y, z, k;
int a[5005];
int main() {
  scanf("%d", &n);
  printf("? %d %d\n", 1, 2);
  fflush(stdout);
  scanf("%d", &x);
  printf("? %d %d\n", 2, 3);
  fflush(stdout);
  scanf("%d", &y);
  printf("? %d %d\n", 1, 3);
  fflush(stdout);
  scanf("%d", &z);
  for (int i = 1; i < x; i++) {
    int fir = i;
    int sec = x - i;
    int thir = y - sec;
    if (fir + thir == z) {
      a[1] = fir;
      a[2] = sec;
      a[3] = thir;
      break;
    }
  }
  for (int i = 4; i <= n; i++) {
    printf("? %d %d\n", 1, i);
    fflush(stdout);
    scanf("%d", &k);
    a[i] = k - a[1];
  }
  printf("! ");
  for (int i = 1; i <= n; i++) printf("%d ", a[i]);
  printf("\n");
  return 0;
}
