import std.algorithm;
import std.array;
import std.ascii;
import std.bigint;
import std.complex;
import std.container;
import std.conv;
import std.functional;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

auto readInts() {
	return array(map!(to!int)(readln().strip().split()));
}
auto readInt() {
	return readInts()[0];
}
auto readLongs() {
	return array(map!(to!long)(readln().strip().split()));
}
auto readLong() {
	return readLongs()[0];
}

void readlnTo(T...)(ref T t) {
    auto s = readln().split();
    assert(s.length == t.length);
    foreach(ref ti; t) {
        ti = s[0].to!(typeof(ti));
        s = s[1..$];
    }
}

const real eps = 1e-10;

const long p = 1_000_000_000 + 7;

bool ask(long n) {
    writeln("? ", n);
    stdout.flush();
    return readln.chomp() == "Y";
}

void main(){
    if(ask(10000000000)) {
        long n = 9;
        while(!ask(n)) {
            n *= 10;
            n += 9;
        }
        writeln("! ", (n+1) / 10);
        return;
    } else {
        long u = 10;
        long l = 0;
        while(u > l+1) {
            auto m = (u+l)/2;
            if(ask(pow(10, m))) {
                l = m;
            } else {
                u = m;
            }
        }
        long x = 0;
        foreach_reverse(i; iota(u)) {
            long y = pow(10L, i+1);
            if(i+1 != u && ask(x + y-1)) {
                continue;
            }
            auto uu = 9;
            auto ll = 0;
            while(uu > ll+1) {
                auto m = (uu+ll)/2;
                if(ask(x + y * m + y-1)) {
                    uu = m;
                } else {
                    ll = m;
                }
            }
            x += y * uu;
        }
        writeln("! ", x / 10);
    }
}

