Smooth context
Andrii does not like sharp transitions, especially in the context of competitions. Two numbers and form a sharp transition if . We say that a competition is smooth if no two neighboring problems create a sharp transition.
You are given numbers - the difficulty levels of problems. Determine whether these problems form a smooth competition.
Input
The first line contains five integers , , , , () - the difficulty levels of the problems.
Output
Print «YES
» if the numbers form a smooth competition, and «NO
» otherwise (the grading system is case-insensitive, so answers like «Yes
» and «yES
» are also accepted).
Examples
Note
Explanation for the first example:
, , , .
None of these pairs form a sharp transition, so the numbers form a smooth competition.
Explanation for the second example:
, , , .
As we can see, the last two numbers form a sharp transition, so the numbers do not form a smooth competition.