#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  vector<string> ask(3, string(n, 'a'));
  vector<vector<int>> encrypt(3, vector<int>(n));
  for (int i = 0; i < n; ++i) {
    ask[0][i] = 'a' + i % 26;
    ask[1][i] = 'a' + (i / 26) % 26;
    ask[2][i] = 'a' + ((i / 26) / 26) % 26;
  }
  for (int i = 0; i < 3; ++i) {
    string tmp;
    cout << "? " << ask[i] << endl;
    fflush(stdout);
    cin >> tmp;
    for (int j = 0; j < n; ++j) encrypt[i][j] = tmp[j] - 'a';
  }
  vector<int> descrypt(n);
  for (int i = 0; i < n; ++i)
    descrypt[i] = encrypt[0][i] + 26 * encrypt[1][i] + 26 * 26 * encrypt[2][i];
  cout << "! ";
  string res(n, 'a');
  for (int i = 0; i < n; ++i) res[descrypt[i]] = s[i];
  cout << res << endl;
}
