Dadas is preparing problems for three contests. There are problems, numbered from to .
Problem must be used in contest . It takes units of time to prepare, and its preparation must be completed by time .
Dadas can prepare only one problem at a time. Let be the order in which the problems are prepared. Set , and define the completion time of problem for each () as follows.
- If or , then .
- If and , then .
Thus, preparing problems from different contests consecutively requires an additional units of switching time. No switching time is required before the first problem.
Determine whether the problems can be ordered so that holds for every .
Input
The input is given from Standard Input in the following format:
Each case is given in the following format:
Output
For each test case, print YES if all problems can be prepared by their deadlines, and print NO otherwise.
Constraints
- .
- .
- The sum of over all test cases does not exceed .
- .
- ().
- ().
- ().
- All values in the input are integers.
Subtasks
Samples
In the first test case, the problems can be prepared in the order . Their completion times are .
In the second test case, regardless of which problem is prepared first, switching is required before preparing the other problem, so both deadlines cannot be met.
In the third test case, every problem belongs to the same contest, so no switching time is incurred.