#K60662. Valid Triangle Checker

    ID: 31137 Type: Default 1000ms 256MiB

Valid Triangle Checker

Valid Triangle Checker

Given three integers A, B, and C representing the lengths of the sides of a potential triangle, determine if these sides can form a valid triangle.

A triangle is valid if and only if the sum of any two sides is strictly greater than the remaining side. In other words, the following three conditions must all hold:

  • $A + B > C$
  • $A + C > B$
  • $B + C > A$

It is guaranteed that if the triangle is valid, all sides are positive. However, some test cases might include non-positive side lengths, in which case the answer should be No.

inputFormat

The input consists of a single line containing three space-separated integers: A, B, and C (the side lengths of the triangle).

Constraints: 1 ≤ A, B, C ≤ 100 may hold for valid cases. However, non-positive numbers may appear in some test cases and should be handled accordingly.

outputFormat

Output a single line containing either Yes if the three sides form a valid triangle, or No otherwise.

## sample
3 4 5
Yes