#include <bits/stdc++.h>
using namespace std;
int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    char a;
    cin >> a;
    char s = a;
    for(int i = 0; i < 100; i++) {
        cout << "? " << s << a << endl;
        string t;
        cin >> t;
        if(t == "! LOSE" || t == "! WIN") exit(0);
        s = t[3];
    }
}