#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); /* aa, ab, ba, ac, ca, ... */ char c, d; string res, S; cin >> c; cout << "? " << c << c << endl; while(1){ cin >> d >> res; if (d == '!') break; reverse(res.begin(), res.end()); cout << "? " << res << endl; } return 0; }