#include using namespace std; using ll = long long; void ask(int l, int r) { cout << "? " << l << " " << r << endl; // endlでflush } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; ll total = 1LL * n * (n + 1) / 2; vector pref(n + 1, 0); // pref[i] = sum(1..i) for (int i = 2; i <= n - 1; i++) { ask(1, i); cin >> pref[i]; } ll sum2n; ask(2, n); cin >> sum2n; vector ans(n + 1); ans[1] = total - sum2n; pref[1] = ans[1]; for (int i = 2; i <= n - 1; i++) { ans[i] = pref[i] - pref[i - 1]; } ans[n] = total - pref[n - 1]; cout << "! "; for (int i = 1; i <= n; i++) { if (i > 1) cout << ' '; cout << ans[i]; } cout << endl; // 念のためflush return 0; }