#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  int len = a.size();
  char s[3][100005];
  for (int i = 0; i < len; i++) {
    s[0][i] = (i % 26 + 'a');
    s[1][i] = (i / 26 % 26 + 'a');
    s[2][i] = (i / (26 * 26) % 26 + 'a');
  }
  string t[3];
  for (int j = 0; j < 3; j++) cout << "? " << s[j] << endl, cin >> t[j];
  vector<int> id;
  for (int i = 0; i < len; i++)
    id.push_back((t[0][i] - 'a') + 26 * (t[1][i] - 'a') +
                 26 * 26 * (t[2][i] - 'a'));
  char ans[100005];
  for (int j = 0; j < len; j++) ans[id[j]] = a[j];
  cout << "! " << ans << endl;
}
