e-olymp
Competitions

WEEK5 GEOMETRY

Rectangular or not?

It set lengths of the sides of a triangle. Define, is this triangle rectangular?

Input

In a unique line set 3 natural numbers - lengths of the sides of a triangle. Lengths of the sides do not exceed 1000.

Output

Deduce "YES" (without inverted commas), if a triangle rectangular, or "NO" (without inverted commas) otherwise.

Time limit 1 seconds
Memory limit 128 MiB
Input example #1
3 5 4
Output example #1
YES
Input example #2
3 5 5
Output example #2
NO
Source SFE-2010 Variant 15