#!/usr/bin/ python3.8 import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines import numpy as np M = int(readline()) ABT = np.array(read().split(), np.float64) A = ABT[::3] B = ABT[1::3] T = ABT[2::3] LT = np.log(T) X = np.ones_like(T) * 0.0001 def newton(X): f = A * X + B * np.log(X) - LT df = A + B / X X -= f / df return for _ in range(15): newton(X) answer = np.exp(X) answer[B == 0] = np.exp(LT[B == 0] / A[B == 0]) print('\n'.join(answer.astype(str)))