#B2050. Triangle Formation

    ID: 11132 Type: Default 1000ms 256MiB

Triangle Formation

Triangle Formation

Given three positive integers representing the lengths of three segments, determine whether these segments can form a triangle. A triangle is valid if and only if it satisfies the conditions:

\(a + b > c\), \(a + c > b\), and \(b + c > a\).

inputFormat

The input consists of three space-separated positive integers \(a\), \(b\), and \(c\), each representing the length of a segment.

outputFormat

Output a single line containing "Yes" if a triangle can be formed with the given segments, otherwise print "No".

sample

3 4 5
Yes