#include #include #include #include using namespace std; using ll = long long; int main(){ string a; cin >> a; set st; for (char c = 'a'; c <= 'z'; c++){ st.insert(c + a); } cout << "? " << a << a << endl; st.erase(st.find(a + a)); while (true){ char j; string e; cin >> j >> e; if (e == "LOSE" || e == "WIN") return 0; if (st.find(e) != st.end()) st.erase(st.find(e)); string f = e; f[0] = e[1]; f[1] = e[0]; cout << "? " << f << endl; st.erase(st.find(f)); } }