#!/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(M) def newton(X): f = A * X + B * np.log(X) - LT df = A + B / X X -= f / df return for _ in range(10): newton(X) answer = np.exp(X) print('\n'.join(answer.astype(str)))