#include <bits/stdc++.h>
using namespace std;
const double pi = acos(-1);
const double eps = 1e-9;
const int mod = 1e9 + 7;
int n, prv[10005];
char s[10005], v1[10005], v2[10005], v3[10005], c1[10005], c2[10005], c3[10005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> (s + 1);
  n = strlen(s + 1);
  for (int i = 1; i <= n; i++) {
    v1[i] = i % 26 + 'a';
    v2[i] = (i / 26) % 26 + 'a';
    v3[i] = (i / (26 * 26)) % 26 + 'a';
  }
  cout << "? " << (v1 + 1) << endl;
  cin >> (c1 + 1);
  cout << "? " << (v2 + 1) << endl;
  cin >> (c2 + 1);
  cout << "? " << (v3 + 1) << endl;
  cin >> (c3 + 1);
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++)
      if (v1[i] == c1[j] && v2[i] == c2[j] && v3[i] == c3[j]) prv[j] = i;
  for (int i = 1; i <= n; i++) v1[prv[i]] = s[i];
  cout << "! " << (v1 + 1) << endl;
  return 0;
}
