You are in a world with curves of the form $f(x) = \arctan(e ^ x + a) \sqrt{b \cdot x^2 + c}$, where $a$, $b$ and $c$ are integers. In this world, there are two types of queries:
- Given three integers $a$, $b$ and $c$, create a new curve with parameters $a$, $b$ and $c$.
- Given an integer $p$, determine the minimum value of $f(p)$ among all curves.
The following image corresponds to the sample test case, where the blue curve is the last curve added.

Here is an explanation of the sample input:
- From the input, mask $m$ is intially set to $0$.
- Query 1 creates a curve with parameter $a = 1000$, $b = 1$, $c = 1$ (since mask $m = 0$).
- Query 2 asks for the minimum value of $f(1)$ among all curves. Since there is only one curve, answer is simply $\arctan(e ^ 1 + 1000) \sqrt{1^2 + 1}$, which is about $2.22$.
- After answering query 2, mask $m$ becomes $\lfloor 2.22 \rfloor \oplus 0 = 2$.
- Query 3 creates a curve with parameters $a$, $b$, and $c$ equal to $3 \oplus 2 = 1$.
- As $p = 3 \oplus 2 = 1$, query 4 asks for the minimum value of $f(1)$ among the two existing curves. From the image, we can see that the last added curve yields a minimum value of about $1.85$.
- After answering query 4, mask $m$ is updated to $\lfloor 1.85 \rfloor \oplus 2 = 3$.
- The last query asks to find the minimum value of $f(41 \oplus 3) = f(42)$ among the two curves.
Output
For each query of type 2, output a line with the required answer, rounding to two digits of precision after the decimal point.