eolymp
bolt
Try our new interface for solving problems
Problems

Create a triangle

Create a triangle

Given the lengths of three segments. Is it possible to construct from them the non-degenerate triangle? The triangle is non-degenerate if it has positive area. \InputFile Three positive integers $a, b, c~(1 \le a, b, c \le 1000)$ --- the lengths of three segments. \OutputFile Print "\textbf{YES}" if it's possible to create the non-degenerate triangle from the given segments and "\textbf{NO}" otherwise.
Time limit 1 second
Memory limit 128 MiB
Input example #1
5 6 7
Output example #1
YES
Input example #2
3 7 4
Output example #2
NO