#P319. 练54.2 小科的三角形

练54.2 小科的三角形

Description

Xiaoke received a triangle formed by three wooden sticks that Xiaoming just selected, with side lengths aa, bb, and cc. She wants to know if this triangle is a right triangle:
If it is a right triangle, output the square of the hypotenuse length;
If it is not a right triangle, output the maximum value of the square of the hypotenuse length that can be formed by any two sides as the legs of a right triangle.

Input Format

One line containing three space-separated integers aa, bb, and cc, representing the three sides of the triangle.
For 100% of the data, 1a,b,c1001≤a,b,c≤100 and the sides can form a triangle.

Output Format

One line containing one integer, representing the square of the hypotenuse length as required by the problem.

Sample

3 4 6
52