#abc308a. [abc308_a]New Scheme
[abc308_a]New Scheme
Problem Statement
Given eight integers , and , print Yes
if they satisfy all of the following three conditions, and No
otherwise.
- The sequence is monotonically non-decreasing. In other words, .
- , and are all between and , inclusive.
- , and are all multiples of .
Constraints
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
125 175 250 300 400 525 600 650
Sample Output 1
Yes
They satisfy all of the three conditions.
Sample Input 2
100 250 300 400 325 575 625 675
Sample Output 2
No
They violate the first condition because .
Sample Input 3
0 23 24 145 301 413 631 632
Sample Output 3
No
They violate the second and third conditions.