def query(x): print('?', '{0:.10f}'.format(x),flush=True) s = input() if s == '-1': raise Exception return True if s == 'Yes' else False import random from math import log10 def solve(): upper = log10(12.22) + 74 lower = -7 for _ in range(24): now = (lower + upper) / 2 if query(pow(10,now)): lower = now else: upper = now print('!', '{0:.10f}'.format(pow(10, (upper + lower)/2)),flush=True) t = int(input()) for _ in range(t): solve()