#CCBCMCHIN0000007. Đủ tuổi hay chưa (Age Threshold)
Đủ tuổi hay chưa (Age Threshold)
Age Threshold
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given an integer age . A person meets the required age when . Determine whether the threshold is met.
Input
A single line contains the integer age , where .
Output
Print YES if ; otherwise print NO.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Examples
Example 1
Input
17
Output
NO
Explanation
The age is 17. Comparing it with the threshold 18 gives a < 18, so the output is NO.
Example 2
Input
18
Output
YES
Explanation
The age is 18. Comparing it with the threshold 18 gives a >= 18, so the output is YES.