#include #include using namespace std; using namespace atcoder; using ll = long long; int N, S; ll A[1010], sum[1010]; int main() { cin >> N; cout << "? " << 2 << " " << N << endl; cin >> S; A[1] = N * (N + 1) / 2 - S; sum[1] = A[1]; for (int k = 2; k <= N - 1; k++) { cout << "? " << k - 1 << " " << k << endl; cin >> S; A[k] = S - A[k - 1]; sum[k] = sum[k - 1] + A[k]; } A[N] = N * (N + 1) / 2 - sum[N - 1]; cout << "!"; for (int i = 1; i <= N; i++) { cout << " " << A[i]; } cout << endl; return 0; }