FUCT_IF_CYLINDER - Geometric cylinder

cylinder

Enter the radius and the height of the cylinder that named r and h. Calculate the volume and total surface area of the cylinder.

Input

The first line of the input consist of a single integer number t which determines the number of tests.

In each of next t lines will contain the radius r and the height h that separated by a space.

Constraints

  • 0 < t ≤ 1 000

Output

For each test case print out volume and total surface area that separated by a space. Separate your answers with a new line character.

Example

Input:
5
1 1
8 -2
4 10
0 7
12 18

Output:
3.14 12.56
the height of cylinder must be greater than 0
502.40 351.68
the radius of cylinder must be greater than 0
8138.88 2260.80

Added by:khanhvh
Date:2018-06-19
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All
Resource:FPTU Can Tho

hide comments
2023-02-12 14:15:00 Simes
Use Pi = 3.14 to get the answers in the example.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.