Problems
Max Volume
Max Volume
Write a program to find the maximum volume of given geometric \textbf{3}-dimensional figures. Here, there are \textbf{3} types of figures: cone, cylinder and sphere.
\includegraphics{https://static.e-olymp.com/content/a5/a5d51a15d6044f985bbb860b50b1b0f27a4f2859.jpg}
The volume (\textbf{V}) of each figure can be calculated by the following formulas.
\includegraphics{https://static.e-olymp.com/content/49/49270e28ebc371c9e6e548fe5edf6353526f0ecb.jpg}
Cone: \textbf{V = (1/3)r^2h}
\includegraphics{https://static.e-olymp.com/content/49/49270e28ebc371c9e6e548fe5edf6353526f0ecb.jpg}
Cylinder: \textbf{V = r^2h}
\includegraphics{https://static.e-olymp.com/content/49/49270e28ebc371c9e6e548fe5edf6353526f0ecb.jpg}
Sphere: \textbf{V = (4/3)r^3}
\includegraphics{https://static.e-olymp.com/content/49/49270e28ebc371c9e6e548fe5edf6353526f0ecb.jpg}
Use the value \textbf{ = 3.14159} in your calculation.
\InputFile
The first line of the input contains a positive integer \textbf{n} (\textbf{1} ≤ \textbf{n} ≤ \textbf{100}) which is the number of figures. The \textbf{n} following lines contain the description of each figure. In case of a cone, the line begins with letter \textbf{C} and followed by \textbf{2} values: \textbf{r }and \textbf{h} respectively. If it is a cylinder, the line begins with letter \textbf{L} and followed by \textbf{2} values: \textbf{r} and \textbf{h} respectively. If it is a sphere, the line begins with letter \textbf{S} and followed by only one value which is \textbf{r}.
\OutputFile
Print out the max volume among the input figures with \textbf{3} decimal places.
Input example #1
5 S 3.0 C 2.5 3 S 1.79 L 2.78 1.4 C 1.15 2.36
Output example #1
113.097