You are given a starting salary S, a duration of N years, and a target salary G.
The salary grows by an integer growth factor X every year.
After N years, Salary = S*(X)^N
Find the minimum integer value of X such that
S*(X)^N≥G
The first line contains an integer T — the number of test cases.
Each of the next T lines contains three integers:
Output
For each test case, print the minimum integer growth factor X.
1 ≤ T ≤ 10^5 1 ≤ N ≤ 60 1 ≤ S ≤ 10^5 S ≤ G ≤ 10^18