#include <bits/stdc++.h>
using namespace std;
using LL = long long;
char s[10004];
char q[3][10004];
char ans[10004];
int main() {
  std::ios::sync_with_stdio(false);
  cin >> s;
  int n = strlen(s);
  cout << "? ";
  for (int i = 0; i < n; ++i) {
    cout << char((i % 26) + 'a');
  }
  cout << endl;
  cin >> q[0];
  cout << "? ";
  for (int i = 0; i < n; ++i) {
    cout << char(((i / 26) % 26) + 'a');
  }
  cout << endl;
  cin >> q[1];
  cout << "? ";
  for (int i = 0; i < n; ++i) {
    cout << char(((i / 26 / 26) % 26) + 'a');
  }
  cout << endl;
  cin >> q[2];
  for (int i = 0; i < n; ++i) {
    int a = q[2][i] - 'a';
    int b = q[1][i] - 'a';
    int c = q[0][i] - 'a';
    int idx = a * 26 * 26 + b * 26 + c;
    ans[idx] = s[i];
  }
  cout << "! ";
  for (int i = 0; i < n; ++i) {
    cout << ans[i];
  }
  cout << endl;
  return (0);
}
