#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 = 0; i + 1 < N; i++){ ll v; cout << "? " << 1 << " " << i + 1 << '\n'; cin >> v; a[i] = v - (i >= 1 ? a[i - 1] : 0); used[a[i] - 1] = true; } int v = min_element(used.begin(), used.end()) - used.begin(); a.back() = v + 1; cout << "!"; for(int i = 0; i < N; i++){ cout << " " << a[i]; } cout << '\n'; }