#Z13201. 晶晶赴约会
晶晶赴约会
Description
Jingjing's friend Beibei has invited her to visit an exhibition together next week. However, Jingjing must attend classes on every Monday, Wednesday, and Friday (represented by the numbers 1, 3, and 5 respectively). Please help Jingjing determine whether she can accept Beibei's invitation. If she can, output YES; otherwise, output NO.
Note: Both YES and NO must be in uppercase letters!
Input Format
The input consists of a single line, indicating the day of the week Beibei invites Jingjing to the exhibition. The day is represented by a number from 1 to 7, where 1 stands for Monday and 7 stands for Sunday.
Output Format
The output consists of a single line. If Jingjing can accept the invitation, output YES; otherwise, output NO.
Note: Both YES and NO must be in uppercase letters!
Example Input
3
Example Output
NO
Explanation
Since 3 represents Wednesday, which is one of Jingjing's class days, she cannot accept the invitation. Thus, the output is NO.
Code Example
day = int(input())
if day in {1, 3, 5}:
print("NO")
else:
print("YES")
This code checks whether the input day is 1, 3, or 5. If so, it prints NO; otherwise, it prints YES.
2
YES