#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e9 + 7;
const long long INF = 1e18 + 7;
const long double eps = 1e-9;
long long n;
const long long alph = 26;
void out(long long l, long long r, long long d, long long let,
         vector<string>& ask) {
  if (d > 2) return;
  if (d >= 0) {
    for (long long i = l; i < r; i++) {
      ask[d] += 'a' + let;
    }
  }
  long long t = ceil((long double)(r - l) / alph);
  for (long long i = 0; i < alph; i++) {
    long long lt = l + i * t;
    long long rt = l + (i + 1) * t;
    if (lt >= r) break;
    if (rt > r) rt = r;
    out(lt, rt, d + 1, i, ask);
  }
}
void seq(long long l, long long r, long long d, vector<long long>& ind,
         vector<string>& ask, vector<string>& ans, vector<long long>& place) {
  if (r - l == 1) {
    place[ind[0]] = l;
    return;
  }
  vector<vector<long long>> let(alph);
  for (long long i : ind) {
    let[ans[d][i] - 'a'].push_back(i);
  }
  long long t = ceil((long double)(r - l) / alph);
  for (long long i = 0; i < alph; i++) {
    long long lt = l + i * t;
    long long rt = l + (i + 1) * t;
    if (lt >= r) break;
    if (rt > r) rt = r;
    seq(lt, rt, d + 1, let[i], ask, ans, place);
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  n = s.size();
  vector<string> ask(3), ans(3);
  out(0, n, -1, 0, ask);
  for (long long i = 0; i < 3; i++) {
    if (ask[i] == "") break;
    cout << "? " << ask[i] << endl;
    cin >> ans[i];
  }
  vector<long long> place(n);
  vector<long long> ind(n);
  for (long long i = 0; i < n; i++) {
    ind[i] = i;
  }
  seq(0, n, 0, ind, ask, ans, place);
  string t = s;
  for (long long i = 0; i < n; i++) {
    t[place[i]] = s[i];
  }
  cout << "! " << t << endl;
  return 0;
}
