Von Neumann

No attempts yetTime limit1sMemory limit128 MB

Problem

Two trains, A and B, stand at opposite ends of a railway 250 miles long. They set off toward each other at the same moment, A at 10 miles per hour and B at 15 miles per hour. The instant they start, a fly resting on the front of train A takes off at 20 miles per hour and shuttles between the two trains without stopping until they collide. How many miles does the fly cover?

Von Neumann heard the problem, summed the infinite series in his head, and answered 200 miles in less than a second.

Given the length DD of the railway, the speeds AA and BB of the two trains, and the speed FF of the fly, write a program that computes the distance the fly covers.

Input

The first line contains the number of test cases PP (1P10001 \le P \le 1000).

Each of the next PP lines holds one test case: five numbers NN, DD, AA, BB, FF separated by spaces. NN is the test case number, DD is the length of the railway (10D100010 \le D \le 1000), AA and BB are the speeds of the two trains (1A,B401 \le A, B \le 40), and FF is the speed of the fly (AB<F50A \le B < F \le 50). DD, AA, BB, FF are real numbers with at most two digits after the decimal point.

Output

For each test case, print one line with the test case number NN and the distance the fly covers before the trains collide, separated by a space.

Round the distance at the seventh digit after the decimal point and print exactly six digits after the decimal point, trailing zeros included. No input lands on a rounding boundary.