QOJ.ac

QOJ

時間限制: 1 s 記憶體限制: 1024 MB 總分: 100 可 Hack ✓

#18580. The 4th DIMIGO Programming Challenge

统计

Students participating in the Dimigo Programming Challenge must adhere to the school's daily schedule. Students following the schedule can only submit code during the time slots specified below.

Time slots for code submission
06:30-09:00
09:50-10:00
10:50-11:00
11:50-12:00
12:50-13:50
14:40-14:50
15:40-15:50
16:40-22:50

Submissions made exactly at the start or end times, such as 09:00 or 10:50, are permitted.

ibasic participated in the Dimigo Programming Challenge and submitted code at $H$ hours and $M$ minutes. Determine whether ibasic submitted the code while adhering to the school's daily schedule.

Input

The first line contains two integers $H$ and $M$, separated by a space, representing the time ibasic submitted the code. $(0\le H\le 23;$ $0\le M\le 59)$

Output

Print Yes if ibasic submitted the code while adhering to the school's daily schedule, and No otherwise.

Examples

Input 1

9 0

Output 1

Yes

Input 2

10 50

Output 2

Yes

Input 3

0 1

Output 3

No

Note

Example 3: This time is during sleeping hours, so the use of electronic devices is prohibited. If caught, the student may be required to write a statement of defense and face disciplinary action.

The submission time rules above do not apply to the Open Contest.

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.