#include using namespace std; int main() { int N, s = 0; cin >> N; vector S( N - 1 ), a( N ); cout << "? " << 1 << " " << 2 << endl; cin >> S[0]; s += S[0]; cout << "? " << 2 << " " << N << endl; cin >> S[1]; s += S[1]; for( int i = 2; i < N - 1; i++ ) { cout << "? " << i << " " << i + 1 << endl; cin >> S[i]; } int all = N * (N + 1) / 2; a[1] = s - all; a[0] = S[0] - a[1]; for( int i = 2; i < N - 1; i++ ) a[i] = S[i] - a[i - 1]; s = 0; for( int i = 1; i < N - 1; i++ ) s += a[i]; a[N - 1] = S[1] - s; cout << "!"; for( int i = 0; i < N; i++ ) cout << " " << a[i]; cout << endl; }