시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 512 MB 16 14 14 87.500%

문제

A common method for determining your own heart rate is to place your index and third finger on your neck to the side of your windpipe. You then count how many beats you feel in a span of 15 seconds, multiply that number by four and that gives you a measure of your heart rate in beats per minute (BPM). This method gives a good estimate, but is not quite accurate. In general, if you measure b beats in p seconds the BPM is calculated as 60b/p.

For this problem, we assume that all heart rates are constant and do not change. If t is the amount of time (in seconds) between each beat of your heart, we define your Actual Beats Per Minute (ABPM) as 60/t.

입력

The input starts with an integer N (1 ≤ N ≤ 1000) indicating the number of cases to follow. Each of the next N lines specify one case, consisting of the integer b (2 ≤ b ≤ 1000) as well as p (0 < p < 1000) as described above. The value of p is a real number specified to 4 decimal places.

출력

For each case, print on a single line the minimum possible ABPM, the calculated BPM, and the maximum possible ABPM, separated by a space. Your answer will be considered correct if its absolute or relative error does not exceed 10−4.

예제 입력 1

2
6 5.0000
2 3.1222

예제 출력 1

60.0000 72.0000 84.0000
19.2172 38.4344 57.6517