Evaporation and Mass
Given a specific vessel, the center is located at the point (0, 0, 0). The vessel extends infinitely upwards, positioned above the half-space relative to the xOy plane. The radius of the vessel's cross-section in the xOy plane is defined by one of the following equations:
The surface of the vessel is formed by rotating the specified curve around the OZ axis.
A liquid with mass M is poured into the vessel. It begins to evaporate according to the law v = αS, meaning the evaporation rate is directly proportional to the area of the liquid's open surface (the surface area exposed to air) at any given moment. Determine the time required for the entire liquid to evaporate from the vessel.
Input
The input starts with a single letter "A" or "B", indicating the type of vessel being considered.
For case "A", the following line contains 3 real numbers a, b, c (0 < a, c < 50, 0 ≤ b ≤ 50).
For case "B", the next line contains 2 real numbers a, b (0 < a, b ≤ 50).
The 3rd line provides two real numbers M (0 < M < 10^4) and α (0 < α ≤ 1).
The liquid's fill height will not exceed 10^15 units.
Output
Output a single number T — the time required for the complete evaporation of the liquid, with an absolute or relative error of 10^{-6}.