#K1711. Pythagorean Triplet Checker

    ID: 24576 Type: Default 1000ms 256MiB

Pythagorean Triplet Checker

Pythagorean Triplet Checker

Given three integers a, b, and c, determine if they form a Pythagorean triplet. In other words, after sorting the three numbers in non-decreasing order, check whether the following equation holds:

\(a^2 + b^2 = c^2\)

If the equation is valid, output "YES"; otherwise output "NO".

Note: The input is provided via standard input, and the output should be printed to standard output.

inputFormat

The input consists of a single line containing three space-separated integers a, b, and c.

outputFormat

Print a single line containing either "YES" if the three numbers form a Pythagorean triplet, or "NO" otherwise.

## sample
3 4 5
YES