#include using namespace std; using ll = long long; using P = pair; #define rep(i, a, b) for(ll i = a; i < b; ++i) #define rrep(i, a, b) for(ll i = a; i >= b; --i) constexpr ll inf = 4e18; struct SetupIO { SetupIO() { ios::sync_with_stdio(0); cin.tie(0); cout << fixed << setprecision(30); } } setup_io; int main(void) { int n; cin >> n; vector p(n); int sum = n * (n + 1) / 2; rep(i, 1, n - 1) { cout << "? " << i + 1 << ' ' << n << endl; int s; cin >> s; p[i - 1] = sum - s; sum -= p[i - 1]; } cout << "? " << 1 << ' ' << n - 1 << endl; int s; cin >> s; p[n - 1] = n * (n + 1) / 2 - s; int cnt = 0; rep(i, 0, n) cnt += p[i]; p[n - 2] = n * (n + 1) / 2 - cnt; cout << "! "; rep(i, 0, n) { cout << p[i] << ' '; } cout << endl; }