#include <bits/stdc++.h>
using namespace std;
string a;
vector<vector<int>> x1, x2, x3;
int main() {
  cin >> a;
  string s1, s2, s3;
  for (int i = 0; i < a.size(); i++) {
    int j = i;
    s1 += (j % 26 + 'a');
    j /= 26;
    s2 += (j % 26 + 'a');
    j /= 26;
    s3 += (j % 26 + 'a');
  }
  string f1, f2, f3;
  cout << "? " << s1 << endl;
  cin >> f1;
  cout << "? " << s2 << endl;
  cin >> f2;
  cout << "? " << s3 << endl;
  cin >> f3;
  string out;
  out.resize(a.size());
  for (int i = 0; i < a.size(); i++) {
    int h = (f1[i] - 'a') + (f2[i] - 'a') * 26 + (f3[i] - 'a') * 26 * 26;
    out[h] = a[i];
  }
  cout << "! " << out;
  return 0;
}
