#include #define rep(i, n) for (int i = 0; i < (n); ++i) using namespace std; using ll = long long; int main() { cin.tie(nullptr) -> sync_with_stdio(false); int n; cin >> n; vector p(n, -1); for (int i = 1; i < n; ++i) { cout << "? 0 " << i << endl; if (!(cin >> p[i])) return 0; } vector cands; vector ans(n, -1); for (int d = 1; d <= 9; ++d) { bool ok = true; vector a(n, -1); a[0] = d; for (int i = 1; i < n; ++i) { if (p[i]%d) { ok = false; break; } int x = p[i]/d; if (x < 0 or x > 9) { ok = false; break; } a[i] = x; } if (ok) { cands.push_back(d); ans = a; } } if (cands.size() != 1) { cout << "! -1" << endl; return 0; } cout << "! "; rep(i, n) cout << ans[i]; cout << endl; return 0; }