#include #include #include #include #include #include #include #include #include #include #define ll long long #define db double using namespace std; ll n,ans[2003]; int main() { cin >> n; ll sum = (n + 1) * n / 2; for (ll i = n - 1;i >= 2;i--) { cout << "? 1 " << i << endl; ll x; cin >> x; ans[i + 1] = sum - x; sum = x; } ll mx = sum; sum = (n + 1) * n / 2; cout << "? 2 " << n << endl; ll k; cin >> k; ans[1] = sum - k; ans[2] = mx - ans[1]; cout << "! "; for (ll i = 1;i <= n;i++) { cout << ans[i] << " "; } return 0; }