Max Volume
Write a program to find the maximum volume of given geometric 3-dimensional figures. Here, there are 3 types of figures: cone, cylinder and sphere.
The volume (V) of each figure can be calculated by the following formulas.
Cone: V = (1/3)r^2h
Cylinder: V = r^2h
Sphere: V = (4/3)r^3
Use the value = 3.14159 in your calculation.
Input
The first line of the input contains a positive integer n (1 ≤ n ≤ 100) which is the number of figures. The n following lines contain the description of each figure. In case of a cone, the line begins with letter C and followed by 2 values: r and h respectively. If it is a cylinder, the line begins with letter L and followed by 2 values: r and h respectively. If it is a sphere, the line begins with letter S and followed by only one value which is r.
Output
Print out the max volume among the input figures with 3 decimal places.