Problem2791--一维数组&循环练习 - abc308a

2791: 一维数组&循环练习 - abc308a

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

给定8个非负整数组成的序列,(s1,s2,s3....s8)约定所有数字介于0到1000之间,请确定,该序列是否同时符合下面三个条件,如果是,打印Yes,否则打印No
条件1: 8个数字以非降顺序排列,即:s1 <= s2 <= s3 <= s4 .... <=s8
条件2: 8个数均介于100 到 675之间(包含100和675)
条件3: 8个数字都是25的倍数 


Input

8个整数

Output

Yes 或 No

Sample Input Copy

125 175 250 300 400 525 600 650

Sample Output Copy

Yes

Source/Category