P19234 [CodeChef] LTIME
普及-
题目描述

Chef has his lunch only between 1 pm and 4 pm (both inclusive).

Given that the current time is X pm, find out whether it is lunchtime for Chef.

------ Input Format ------

  • The first line of input will contain a single integer T, the number of test cases. Then the test cases follow.
  • Each test case contains a single line of input, containing one integer X.

------ Output Format ------

For each test case, print in $a single line \texttt{YES}$ if it is lunchtime for Chef. Otherwise, print $\texttt{NO}$.

You may print each character of the string in either uppercase or lowercase (for example, the strings $\texttt{YeS}, \texttt{yEs}, \texttt{yes}$ and $\texttt{YES}$ will all be treated as identical).

------ Constraints ------

$1 ≤ T ≤ 12$
$1 ≤ X ≤ 12$

----- Sample Input 1 ------
3
1
7
3
----- Sample Output 1 ------
YES
NO
YES
----- explanation 1 ------
Test case $1$: Lunchtime is between $1$ pm and $4$ pm (both inclusive). Since $1$ pm lies within lunchtime, the answer is $\texttt{YES}$.

Test case $2$: Lunchtime is between $1$ pm and $4$ pm (both inclusive). Since $7$ pm lies outside lunchtime, the answer is $\texttt{NO}$.

Test case $3$: Lunchtime is between $1$ pm and $4$ pm (both inclusive). Since $3$ pm lies within lunchtime, the answer is $\texttt{YES}$.

输入格式

见题面

输出格式

见题面

样例输入
3 1 7 3
样例输出
YES NO YES