#pragma GCC optimize "O3,omit-frame-pointer,inline" #pragma GCC push_options #pragma GCC optimize ("unroll-loops") #define _USE_MATH_DEFINES #include using namespace std; signed main () { std::ios::sync_with_stdio(false); std::cin.tie(0); int n; cin >> n; string ans; for (int u = 0; u < n; u++) { bool found = false; for (char c = 'a'; c < 'z'; c++) { string t; for (int v = 0; v < n; v++) { if (v == u) { t += c; } else { t += c + 1; } } cout << "? " << t << endl; int res; cin >> res; if (res == 1) { ans += c; found = true; break; } } if (!found) { ans += 'z'; } } cout << "! " << ans << endl; return 0; }