#include <bits/stdc++.h>
#pragma GCC optimize(3)
using namespace std;
const long long maxnodes = 1005;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  string t;
  cin >> t;
  long long n = t.size();
  string s1(n, 'a'), s2(n, 'a'), s3(n, 'a');
  string t1, t2, t3;
  for (long long i = 0; i < n; i++) {
    s1[i] = char('a' + i % 26);
    s2[i] = char('a' + (i / 26) % 26);
    s3[i] = char('a' + ((i / 26) / 26) % 26);
  }
  cout << "? " << s1 << endl;
  cin >> t1;
  cout << "? " << s2 << endl;
  cin >> t2;
  cout << "? " << s3 << endl;
  cin >> t3;
  string s(n, 'a');
  for (long long i = 0; i < n; i++) {
    long long z = (t1[i] - 'a') + (t2[i] - 'a') * 26 + (t3[i] - 'a') * 26 * 26;
    s[z] = t[i];
  }
  cout << "! " << s << endl;
  return 0;
}
