#include <bits/stdc++.h>
using namespace std;
const long double PI = 3.1415926535898;
const long long INF = LLONG_MAX;
const long long MOD = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  string x;
  cin >> x;
  int len = x.length();
  string perm[len];
  int num = 0;
  for (char i = 'a'; i <= 'z'; i++) {
    string temp = "";
    temp += i;
    for (int j = 'a'; j <= 'z'; j++) {
      string temp1 = temp;
      temp1 += j;
      for (int k = 'a'; k <= 'z'; k++) {
        string temp2 = temp1;
        temp2 += k;
        perm[num++] = temp2;
        if (num == len) break;
      }
      if (num == len) break;
    }
    if (num == len) break;
  }
  string y[3];
  string z[3];
  for (int i = 0; i < 3; i++) {
    string temp = "";
    for (int j = 0; j < len; j++) {
      temp += perm[j][i];
    }
    cout << "? " << temp << endl;
    z[i] = temp;
    cin >> y[i];
  }
  string ans = x;
  for (int i = 0; i < len; i++) {
    for (int j = 0; j < len; j++) {
      if (z[0][i] == y[0][j] && z[1][i] == y[1][j] && z[2][i] == y[2][j]) {
        ans[i] = x[j];
      }
    }
  }
  cout << "! " << ans << endl;
}
