#include <bits/stdc++.h>
using namespace std;
int n, par[10010];
string ans, s1, s2, s3, t, t1, t2, t3;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cin >> t;
  n = t.length();
  ans = s1 = s2 = s3 = t1 = t2 = t3 = string(n, 'a');
  for (int i = 0; i < n; ++i) {
    s1[i] = 'a' + (i % 26);
    s2[i] = 'a' + ((i / 26) % 26);
    s3[i] = 'a' + ((i / 676) % 26);
  }
  cout << "? " << s1 << endl;
  cin >> t1;
  cout << "? " << s2 << endl;
  cin >> t2;
  cout << "? " << s3 << endl;
  cin >> t3;
  for (int i = 0; i < n; ++i) {
    par[i] = (t1[i] - 'a') + (t2[i] - 'a') * 26 + (t3[i] - 'a') * 676;
  }
  for (int i = 0; i < n; ++i) {
    ans[par[i]] = t[i];
  }
  cout << "! " << ans << endl;
}
