0.65 Edgar has a collection of red, blue and yellow marbles. As many times as he wishes, he can only make one operation: exchanging two marbles of different colours (one of each colour) for one of the remaining colour. Given (the number of marbles of each colour), can you determine whether Edgar will be capable of keeping just one of the marbles?
For instance, from he can move to , from there to , and from there to . By contrast, it is not difficult to see that from he cannot reach any of , or .
0.33
Input consists of several cases, each one with three integers , and , all of them between 0 and . Assume .
For every case, print “YES” if Edgar can achieve a
situation where
,
and print “NO” otherwise. Obviously, none of the three
variables can go below zero at any moment.
Input
1 1 2 1 1 3 0 1 0 7 4 2
Output
YES NO YES YES