AtCoder Beginner Contest 194
A
I Scream
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

In Japan, there are four major categories of ice cream type products:

翻译中…
  • an ice cream type product with at least $15$ percent milk solids and at least $8$ percent milk fat is called an ice cream;
  • an ice cream type product with at least $10$ percent milk solids and at least $3$ percent milk fat that is not an ice cream is called an ice milk;
  • an ice cream type product with at least $3$ percent milk solids that is not an ice cream or an ice milk is called a lacto ice;
  • an ice cream type product that is not an ice cream, an ice milk, or a lacto ice is called a flavored ice.
翻译中…

Here, milk solids consist of milk fat and milk solids-not-fat. AtCoder's famous product Snuke Ice contains $A$ percent milk solids-not-fat and $B$ percent milk fat. Which of the categories above does Snuke Ice fall into? Print your answer as an integer according to the Output section.

翻译中…

Constraints

翻译中…
  • $0 \le A \le 100$
  • $0 \le B \le 100$
  • $A + B \le 100$
  • $A$ and $B$ are integers.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

A B

翻译中…

Output

翻译中…

Print an integer as follows:

翻译中…
  • if Snuke Ice is an ice cream, print $1$;
  • if Snuke Ice is an ice milk, print $2$;
  • if Snuke Ice is a lacto ice, print $3$;
  • if Snuke Ice is a flavored ice, print $4$.
翻译中…

样例

Input #1
10 8
Output #1
1
This product contains $10$ percent milk solids-not-fat and $8$ percent milk fat, for a total of $18$ percent milk solids. Since it contains not less than $15$ percent milk solids and not less than $8$ percent milk fat, it is an ice cream; the correct output is $1$.
Input #2
1 2
Output #2
3
Since it contains exactly $3$ percent milk solids, it is not an ice cream or an ice milk but is a lacto ice; the correct output is $3$.
Input #3
0 0
Output #3
4
It is a flavored ice.
题目信息
题号
abc194_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。