#B4026. The Accumulation of Inspiration

    ID: 11683 Type: Default 1000ms 256MiB

The Accumulation of Inspiration

The Accumulation of Inspiration

Xun Feng wrote two articles in the morning and two in the afternoon. He is fond of counting the number of characters (or words) in his articles. His inspiration is considered to be accumulating over time if and only if the total number of characters in the articles written in the afternoon is strictly greater than that in the morning.

Mathematically, let \(a_1\) and \(a_2\) be the character counts for the morning articles, and \(a_3\) and \(a_4\) be those for the afternoon articles. The inspiration is said to accumulate if: \[ a_3 + a_4 > a_1 + a_2 \]

inputFormat

The input consists of a single line with four integers: a1 a2 a3 a4, representing the character counts of the four articles in order. The first two integers are for the morning and the last two are for the afternoon.

outputFormat

Output YES if the total number of characters in the afternoon is strictly greater than that in the morning, otherwise output NO.

sample

100 200 300 400
YES