#SCCCIE000022. Phân loại kem (I Scream)
Phân loại kem (I Scream)
I Scream
Source: AtCoder
Problem Statement
A product has milk-solids-not-fat and milk fat, so total milk solids are . Classify in priority order: type if and ; type if not type but and ; type if neither above but ; otherwise type .
Input
One line contains and .
Output
Print the category number , , , or .
Subtasks
- Subtask 1 (100%): ;
Examples
Example 1
Input
10 8
Output
1
Explanation
For the sample values 10, 8, evaluating the conditions in the statement gives 1. Therefore the program prints the shown output.
Example 2
Input
1 2
Output
3
Explanation
For the sample values 1, 2, evaluating the conditions in the statement gives 3. Therefore the program prints the shown output.
Example 3
Input
0 0
Output
4
Explanation
For the sample values 0, 0, evaluating the conditions in the statement gives 4. Therefore the program prints the shown output.