#include #include using namespace std; int main(){ int n;cin>>n; vector A(n); int sm = n*(n+1)/2; for(int i = 0; n-2 > i; i++){ cout << "? " << 1 << " " << n-i-1 << endl; int x;cin>>x; A[n-i-1] = sm-x; sm = x; } cout << "? 2 3" << endl; int x;cin>>x; A[1] = x-A[2]; A[0] = sm-A[1]; cout << "! "; for(int i = 0; n > i; i++){ cout << A[i] << " "; } cout << endl; }