All problems

Problem 798

Check Triangle Sides

Easy · 10 pts · Math, Basics, Geometry

Problem

Three positive lengths A, B and C can form a triangle (with non-zero area) only if each one is smaller than the sum of the other two: A + B > C, A + C > B and B + C > A. Decide whether the given lengths form a triangle. If the largest side equals the sum of the other two, the 'triangle' is flat and does not count.

Input

A single line with three integers A, B and C.

Output

Print YES if the lengths form a triangle, otherwise NO.

Constraints

1 <= A, B, C <= 10^9

Example input

3 4 5

Example output

YES

Explanation

For 3 4 5, every side is shorter than the sum of the other two (for example 3 + 4 = 7 > 5), so the answer is YES. 1 2 3 is flat, so it would be NO.

Every problem here can be used in a RelayTrixCode team match. Create a room.

Previous: FizzBuzz Next: Type of Triangle