eolymp
bolt
Try our new interface for solving problems
Problems

Cylinder

Cylinder

Using a sheet of paper and scissors, you can cut out two faces to form a cylinder in the following way: \begin{enumerate} \item Cut the paper horizontally (parallel to the shorter side) to get two rectangular parts. \item From the first part, cut out a circle of maximum radius. The circle will form the bottom of the cylinder. \item Roll the second part up in such a way that it has a perimeter of equal length with the circle's circumference, and attach one end of the roll to the circle. Note that the roll may have some overlapping parts in order to get the required length of the perimeter. \end{enumerate} Given the dimensions of the sheet of paper, can you calculate the biggest possible volume of a cylinder which can be constructed using the procedure described above? \InputFile The input consists of several test cases. Each test case consists of two numbers \textbf{w} and \textbf{h} (\textbf{1} ≤ \textbf{w} ≤ \textbf{h} ≤ \textbf{100}), which indicate the width and height of the sheet of paper. The last test case is followed by a line containing two zeros. \OutputFile For each test case, print one line with the biggest possible volume of the cylinder. Round this number to \textbf{3} places after the decimal point.
Time limit 1 second
Memory limit 64 MiB
Input example #1
10 10
10 50
10 30
0 0
Output example #1
54.247
785.398
412.095