#K89392. Valid Triangle Determination

    ID: 37520 Type: Default 1000ms 256MiB

Valid Triangle Determination

Valid Triangle Determination

You are given three positive integers representing the lengths of the sides of a potential triangle. Your task is to determine if these sides can form a valid triangle. In a valid triangle, the sum of any two sides must be strictly greater than the third side, which is mathematically represented as (a + b > c), (a + c > b), and (b + c > a). If all these conditions are satisfied, print YES; otherwise, print NO.

inputFormat

The input consists of a single line containing three space-separated integers: a, b, and c, denoting the sides of a potential triangle.

outputFormat

Output a single string: YES if the given sides can form a valid triangle, otherwise NO.## sample

3 4 5
YES