eolymp
bolt
Try our new interface for solving problems
Problems

Rectangular or not?

Rectangular or not?

The lengths of the sides of a triangle are given. Determine, if this triangle is rectangular. \InputFile Three positive integers --- the lengths of sides of triangle. The lengths of the sides do not exceed $1000$. \OutputFile Print "\textbf{YES}" if triangle is rectangular, or "\textbf{NO}" otherwise.
Time limit 1 second
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