#include <bits/stdc++.h>
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    char c; cin >> c;
    cout << "? " << c << c << endl; 
    while(true){
        char a; string s; cin >> a >> s;
        if(a == '!') return 0;
        cout << "? " << s.at(1) << c << endl; 
    }
}