#include <bits/stdc++.h>
using namespace std;
char out1[10010], out2[10010], out3[10010], ans[10010];
int main() {
  string s0, s1, s2, s3;
  cin >> s0;
  int n = s0.size();
  for (int i = 0; i < n; i++) out1[i] = i % 26 + 'a';
  cout << "? " << out1 << '\n';
  fflush(stdout);
  cin >> s1;
  int nc = 0, ng = 0;
  for (int i = 0; i < n; i++) {
    out2[i] = ng + 'a';
    nc++;
    if (nc == 26) nc = 0, ng++;
    if (ng == 26) ng = 0;
  }
  cout << "? " << out2 << '\n';
  fflush(stdout);
  cin >> s2;
  nc = 0, ng = 0;
  for (int i = 0; i < n; i++) {
    out3[i] = ng + 'a';
    nc++;
    if (nc == 676) nc = 0, ng++;
    if (ng == 26) ng = 0;
  }
  cout << "? " << out3 << '\n';
  fflush(stdout);
  cin >> s3;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++)
      if (out1[i] == s1[j] && out2[i] == s2[j] && out3[i] == s3[j]) {
        ans[i] = s0[j];
        break;
      }
  cout << "! " << ans << '\n';
  fflush(stdout);
  return 0;
}
