Chef has his lunch only between
pm and pm (both inclusive).
Given that the current time is pm, find out whether it is lunchtime for Chef.
Input Format
- The first line of input will contain a single integer , the number of test cases. Then the test cases follow.
- Each test case contains a single line of input, containing one integer .
Output Format
For each test case, print in a single line if it is lunchtime for Chef. Otherwise, print .
You may print each character of the string in either uppercase or lowercase (for example, the strings , , and will all be treated as identical).
Constraints
Sample Input 1
3
1
7
3
Sample Output 1
YES
NO
YES
Explanation
Test case : Lunchtime is between pm and pm (both inclusive). Since pm lies within lunchtime, the answer is .
Test case : Lunchtime is between pm and pm (both inclusive). Since pm lies outside lunchtime, the answer is .
Test case : Lunchtime is between pm and pm (both inclusive). Since pm lies within lunchtime, the answer is .
No comments:
Post a Comment