e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

A square from squares

A square from squares

Find the integer side length of the largest square, that can be obtained from three squares with sides a, b and c, cutting them into rectangles and then putting together to form a square.

Input

Three positive integers a, b and c, not greater than 1000.

Output

Print the integer side length of the largest square.

Time limit 1 second
Memory limit 122.17 MiB
Input example #1
2 3 4
Output example #1
5