#include using namespace std; int main(){ char c; cin >> c; set st; while (true){ for (int i = 0; i < 26; i++){ string S; S += c; S += ('a' + i); if (st.count(S) == 0){ cout << '?' << ' ' << S << endl; st.insert(S); break; } } cin >> c; if (c == '!'){ return 0; } string T; cin >> T; st.insert(T); c = T[1]; } }