#include #include #include #include #include #include #include #include #include #include using ll = long long; using namespace std; int main() { ll n, all, tmp; cin >> n; vector a(n); all = n * (n+1)/2; for (ll i = 2; i < n; i++){ cout << "? " << i << " " << n << endl; cin >> tmp; a[i-2] = all - tmp; all = tmp; } cout << "? " << 1 << " " << n - 1 << endl; cin >> tmp; a[n-1] = n * (n+1)/2 - tmp; a[n-2] = all - a[n-1]; string delim = ""; cout << "! "; for (auto x : a){ cout << delim << x; delim = " "; } cout << endl; }