#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
  #include "settings/debug.cpp"
#else
  #define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;

int main() {
  char c;
  cin >> c;
  string prev = "";
  rep(i, 26) {
    if (prev == "") prev += c;
    cout << "? " << prev.back() << c << endl;
    char res;
    cin >> res >> prev;
    if (res == '!') break;
  }
  return 0;
}