#T195. 求f(x,n)

求f(x,n)

Description

Given $f(x,n)=\sqrt{n+\sqrt{(n-1)+\sqrt{(n-2)+\sqrt{...+2+\sqrt{1+x}}}}}$, calculate the value of ff when x=4.2x=4.2, n=10n=10 and x=2.5x=2.5, n=15n=15.

Input Format

Input xx and nn.

Output Format

The function value, rounded to two decimal places.

4.2 10

3.68