Puzzle Hunt
Hazrat Ali
The rules of the puzzle hunt state:
"This hunt is intended for teams of 6 to 8 people."
Chef's team has NN people in total. Are they eligible to participate?
Input Format
The first and only line of input will contain a single integer NN: the number of people present in Chef's team.
Output Format
Print the answer: Yes
if Chef's team is eligible to participate, and No
otherwise.
Each letter in the output may be printed in either uppercase or lowercase, i.e, the outputs NO
, No
, nO
, no
will all be treated as equivalent.
Constraints
- 1≤N≤10
Sample 1:
4
No
Explanation:
The puzzle hunt requires between 6 and 8 people in a team.
4 isn't between 6 and 8, so Chef's team cannot participate.
Sample 2:
7
Yes
Explanation:
Chef's team has 7 people, and 7 lies between 6 and 8.
So, Chef's team can participate in the event.
Sample 3:
8
Yes
Solution
n = int(input())
if 6 <= n <= 8:
print("Yes")
else:
print("No")