Skip to main content

~/algor $ cat contests/round-7/AN

AN. Cone

Problem AN ICPC rules 1000 ms 64 MB

The base radius and height of a cone are given. Find the slant height , the volume and the total surface area :

Use .

A cone: base radius r, height h, slant height l

Input

One line with two positive integers: and .

Output

One line with three numbers: , and , each with exactly 2 digits after the decimal point (for example, 5.00).

Note

Examples

Input #1
3 4
Output #1
5.00 37.70 75.40
Input #2
1 1
Output #2
1.41 1.05 7.58

Sign in to submit a solution

Signing up is free and takes a minute.