018. Machines
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

In mechanical engineering, the primary tool used to measure the energy amplified into a simple machine or a compound machine is called a concept known as the Mechanical Advantage, which signifies the ratio of the energy put into a machine, and the amount of force it outputs.

In one type of simple machine, the lever, mechanical advantage will be calculated by the lengths of the two sides, with the position of the fulcrum determining the length of the two sides. A diagram and a simplified formula of this process has been given below:

where A is the length of the side where Force 1 is being applied, and B is its respective counterpart.
Input

Your objective is to find the mechanical advantage of a lever, given side A and side B. The first positive integer n is the amount of inputs that will follow.

Example
Input
4
10 5
2 3
7 5
18 7
Output
2.0
0.6666666666666666
1.4
2.5714285714285716