#include <bits/stdc++.h>
using namespace std;
long long mod = (long long)1e9 + 7;
int main() {
  string s;
  cin >> s;
  string s1 = "", s2 = "", s3 = "";
  for (int i = 0; i < s.size(); i++) {
    s1 = s1 + char('a' + i % 26);
    s2 = s2 + char('a' + (i / 26) % 26);
    s3 = s3 + char('a' + (i / 26 / 26) % 26);
  }
  cout << "?"
       << " " << s1 << endl;
  fflush(stdout);
  string t1;
  cin >> t1;
  cout << "?"
       << " " << s2 << endl;
  fflush(stdout);
  string t2;
  cin >> t2;
  cout << "?"
       << " " << s3 << endl;
  fflush(stdout);
  string t3;
  cin >> t3;
  vector<int> p;
  for (int i = 0; i < s.size(); i++) {
    p.push_back((t1[i] - 'a') + (t2[i] - 'a') * 26 + (t3[i] - 'a') * 26 * 26);
  }
  string ans(s.size(), 'a');
  for (int i = 0; i < s.size(); i++) {
    ans[p[i]] = s[i];
  }
  cout << "!"
       << " " << ans << endl;
  fflush(stdout);
}
