K. Power of Friendship
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

In an advanced material science lab, researchers are studying the crystal structure of alkali metals, such as sodium and potassium. These metals form a body-centered cubic (BCC) lattice, which is a repeating three-dimensional arrangement of atoms.

In a BCC lattice, each unit cell consists of one atom at the center of the cube and eight atoms at the corners of the cube. Each corner atom is shared by eight adjacent unit cells.

The domain of an atom is the region where its force strength is stronger than that of any other atom. In other words, the domain of an atom is the set of points that are closer to that atom than any other atom.

Your task is to calculate the volume of the domain of a center atom of a BCC lattice given its lattice spacing (side length of the unit cells) as a fraction $$$\dfrac{p}{q}$$$.

Input

The first line of the input contains an integer $$$t \: (1 \leq t \leq 100)$$$ — the number of test cases.

Each test case consists of a single line containing two space-separated integers $$$p$$$ and $$$q \:(1 \leq p, q \leq 100)$$$ — the numerator and the denominator of the fraction representing the lattice spacing.

Output

For each test case, output a single number in a line — the volume of the domain of a center atom.

The answer will be considered correct if the absolute error does not exceed $$$10^{-6}$$$.

Example
Input
2
7 3
15 4
Output
6.351852
26.367188
Note

The domain of the center atom in a unit cell is illustrated in the following figure: