#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  string a1, a2, a3;
  string b1, b2, b3;
  string s;
  cin >> s;
  a1 = string(s.size(), 'a');
  a2 = string(s.size(), 'a');
  a3 = string(s.size(), 'a');
  b1 = string(s.size(), 'a');
  b2 = string(s.size(), 'a');
  b3 = string(s.size(), 'a');
  for (int i = 0; i < s.size(); i++) {
    a1[i] = i % 26 + 'a';
    a2[i] = i / 26 % 26 + 'a';
    a3[i] = i / 26 / 26 + 'a';
  }
  cout << "? " << a1 << endl;
  cin >> b1;
  cout << "? " << a2 << endl;
  cin >> b2;
  cout << "? " << a3 << endl;
  cin >> b3;
  int k;
  vector<int> a;
  a.resize(s.size(), -1);
  for (int i = 0; i < s.size(); i++) {
    for (k = int(b1[i] - 'a'); k < s.size(); k += 26) {
      if (a1[k] == b1[i] && a2[k] == b2[i] && b3[i] == a3[k] && a[k] == -1) {
        a[k] = i;
        break;
      }
    }
  }
  string ans = string(s.size(), 'a');
  for (int i = 0; i < s.size(); i++) {
    if (a[i] == -1) {
      cout << "! " << ans << endl;
      cin >> s;
      return 0;
    }
    ans[i] = s[a[i]];
  }
  cout << "! " << ans << endl;
  cin >> ans;
}
