P24105 [AtCoder] I Scream
入门
题目描述

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.

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.

Constraints

  • $0 \le A \le 100$
  • $0 \le B \le 100$
  • $A + B \le 100$
  • A and B are integers.

Sample Input 1

10 8

Sample 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.

Sample Input 2

1 2

Sample 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.

Sample Input 3

0 0

Sample Output 3

4

It is a flavored ice.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
10 8
样例输出
1