import std.algorithm;
import std.array;
import std.conv;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

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

void answer (long value)
{
	writeln ("! ", value);
	stdout.flush ();
}

void main ()
{
	long lo = 1;
	while (!(ask (lo) && ask (lo * 10 - 1)))
	{
		lo *= 10;
	}
	long hi = lo * 10 - 1;
	while (lo < hi)
	{
		long me = (lo + hi) / 2;
		if (ask (me * 10))
		{
			hi = me;
		}
		else
		{
			lo = me + 1;
		}
	}
	answer (lo);
}
