#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string t;
  cin >> t;
  int n = t.length();
  string g1, g2, g3;
  for (int i = 0; i < n; i++) {
    g1 += (i % 26) + 'a';
    g2 += ((i / 26) % 26) + 'a';
    g3 += (((i / 26) / 26) % 26) + 'a';
  }
  string t1, t2, t3;
  cout << "? " << g1 << endl;
  cin >> t1;
  cout << "? " << g2 << endl;
  cin >> t2;
  cout << "? " << g3 << endl;
  cin >> t3;
  vector<int> p(n);
  string s(n, 'a');
  for (int i = 0; i < n; i++) {
    int o = t1[i] - 'a', t = t2[i] - 'a', th = t3[i] - 'a';
    p[i] = o + t * 26 + th * 676;
  }
  for (int i = 0; i < n; i++) {
    s[p[i]] = t[i];
  }
  cout << "! " << s << endl;
  return 0;
}
