题目描述
Problem Description
The criteria for classifying rainfall intensity in meteorological terms are as follows:
- Drizzle: Rainfall amount in 24 hours is less than 10 millimeters.
- Moderate Rain: Rainfall amount in 24 hours is at least 10 millimeters but less than 25 millimeters.
- Heavy Rain: Rainfall amount in 24 hours is at least 25 millimeters but less than 50 millimeters.
- Torrential Rain: Rainfall amount in 24 hours is at least 50 millimeters.
Additionally, Flash Heavy Rain is specially categorized due to its sudden onset, which can easily cause urban waterlogging. It refers to weather phenomena where the rainfall amount in 1 hour is at least 20 millimeters.
It is important to note that 1-hour rainfall and 24-hour rainfall are not mutually exclusive. For example, if the rainfall in 1 hour reaches 30 millimeters, it qualifies as both Flash Heavy Rain and Heavy Rain.
Given the rainfall amount at a certain location and the number of hours it was achieved (guaranteed to be either 1 or 24), please output the intensity level of the rainfall.
Input Format
Input consists of two positive integers on a single line, representing the rainfall amount \( x \) and the number of hours \( h \) it was achieved.
Output Format
Output either 1 or 2 lines. The first line indicates the rainfall level based on the 24-hour standard.
If \( h = 1 \), the second line indicates whether it meets the Flash Heavy Rain standard. If it does, output YES; otherwise, output NO.
Sample Input and Output
Sample Input #1
75 24
Sample Output #1
Torrential Rain
Sample Input #2
25 1
Sample Output #2
Heavy Rain
YES
Notes
[Sample Explanation]
For the second sample, you should consider the rainfall as occurring only within the current hour, and since 25 millimeters falls under the Heavy Rain standard, output Heavy Rain. In other words, you should not calculate the total 24-hour rainfall by multiplying the amount by 24.
The data guarantees that \( 1 \leq x \leq 1000 \) and \( h \) is either 1 or 24.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分