#B3813. Determine If NOI Rankings Sum is Below Threshold

    ID: 11470 Type: Default 1000ms 256MiB

Determine If NOI Rankings Sum is Below Threshold

Determine If NOI Rankings Sum is Below Threshold

After NOI 3202, four contestants - A, B, C, and D secured rankings of \(a\), \(b\), \(c\), and \(d\) respectively. They are all admitted to Tsinghua University and share the same dormitory.

If the sum of their NOI rankings is less than \(51\), we say that "the combined rankings are not as high as Xiao Fen Tu"; otherwise (i.e., if the sum is greater than or equal to \(51\)), we say that "the combined rankings are not lower than Xiao Fen Tu". Fu Su now knows the four rankings and wants you to determine whether the condition "the combined rankings are not as high as Xiao Fen Tu" holds.

In simpler terms, if \(a+b+c+d < 51\), output "YES"; otherwise, output "NO".

inputFormat

The input consists of a single line containing four space-separated integers \(a\), \(b\), \(c\), and \(d\) representing the NOI rankings of A, B, C, and D respectively.

outputFormat

Output a single string: if \(a+b+c+d < 51\) output "YES"; otherwise, output "NO".

sample

1 2 3 4
YES