from math import sqrt from sys import stdout def query(s: str) -> str: print("?", s) stdout.flush() res = input().rstrip() if res == "-1": exit(0) return res == "Yes" def answer(s: str): print("!", s) stdout.flush() def float2string(f: float) -> str: s = f"{f:0.10f}" return s[0] + s[1:].rstrip("0").rstrip(".") def middle(left: float, right: float, threshold: float = 1, last=False) -> float: if left < threshold and right > threshold: return threshold elif left < threshold: return (left + right) / 2 elif last: return 2 * right * left / (right + left) else: return sqrt(left * right) def solve(): threshold = 167.7717663 left = 0.0 right = 12.22e74 for _ in range(24): mid = middle(left, right, threshold) if query(float2string(mid)): left = mid else: right = mid return answer(float2string(middle(left, right, threshold, True))) def main(): T = int(input()) for _ in range(T): solve() if __name__ == "__main__": main()