시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 2048 MB54312371.875%

문제

An ant is on one of the vertices, say the starting vertex, of a rectangular cuboid (a hexahedron with all of its faces being rectangular). The surface of the cuboid constitutes the entire world of the ant.

We’d like to know which point on the surface of the cuboid is the farthest for the ant from the starting vertex. You may think that the opposite vertex, that is, the opposite end of the interior diagonal from the starting vertex, is the farthest. The opposite vertex is, however, not necessarily the farthest.

For example, on the surface of a cuboid of size $1 \times 1 \times 2$, the distance from a vertex to the opposite vertex is the square root of $8$. The distance to the farthest point is, however, the square root of $65/8$ (Figure F.1).

Figure F.1. Rectangular cuboid of size $1 \times 1 \times 2$, and its net

You are given the size of the rectangular cuboid. Write a program which calculates the distance from the starting vertex to the farthest point.

입력

The input consists of a single test case of the following format.

$a$ $b$ $c$

The three integers $a$, $b$, and $c$ mean that the size of the rectangular cuboid is $a \times b \times c$. All of them are between $1$ and $100$, inclusive.

출력

Output a line containing the distance from the starting vertex to the farthest point. The relative error of the output must be less than or equal to $10^{-9}$.

예제 입력 1

1 1 2

예제 출력 1

2.850438562747845

예제 입력 2

10 10 10

예제 출력 2

22.360679774997898

예제 입력 3

100 2 3

예제 출력 3

101.0503923792481

예제 입력 4

2 3 5

예제 출력 4

7.093659140387279

예제 입력 5

84 41 51

예제 출력 5

124.582755157578