#include using namespace std; using ll = long long; int main(){ //ios::sync_with_stdio(false); //cin.tie(0); int N, v2 = 0; cin >> N; vector a(N); vector used(N, false); for(int i = 1; i + 1 < N; i++){ ll v; cout << "? " << 1 << " " << i + 1 << '\n'; cin >> v; a[i] = v; } a.back() = (ll)(N) * (N + 1) / 2; for(int i = N - 1; i >= 1; i--){ a[i] -= a[i - 1]; used[a[i] - 1] = true; } int v; cout << "? " << 2 << " " << N << '\n'; cin >> v; a[0] = (ll)(N) * (N + 1) / 2 - v; used[a[0] - 1] = true; v = min_element(used.begin(), used.end()) - used.begin(); a[1] = v + 1; cout << "!"; for(int i = 0; i < N; i++){ cout << " " << a[i]; } cout << '\n'; }