A - I Scream Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 100

問題文

日本において、アイス製品は次の 4 種類に大別されます。

  • 乳固形分15 パーセント以上、乳脂肪分8 パーセント以上含まれるものを「アイスクリーム」とする。
  • 上に当てはまらず、乳固形分10 パーセント以上、乳脂肪分3 パーセント以上含まれるものを「アイスミルク」とする。
  • 上のいずれにも当てはまらず、乳固形分3 パーセント以上含まれるものを「ラクトアイス」とする。
  • 上のいずれにも当てはまらないものを「氷菓」とする。

ここで、乳固形分無脂乳固形分乳脂肪分2 つから成ります。
AtCoder 名物の製品「スヌケアイス」には、無脂乳固形分A パーセント、乳脂肪分B パーセント含まれています。
スヌケアイスに上の分類を適用したとすると、4 種類のどれに当てはまるでしょうか ?
答えは「出力」の項に従って整数で出力してください。

制約

  • 0 \le A \le 100
  • 0 \le B \le 100
  • A + B \le 100
  • A, B は整数

入力

入力は以下の形式で標準入力から与えられる。

A B

出力

以下に定められる整数を出力せよ :

  • スヌケアイスがアイスクリームに当てはまる場合 : 1
  • スヌケアイスがアイスミルクに当てはまる場合 : 2
  • スヌケアイスがラクトアイスに当てはまる場合 : 3
  • スヌケアイスが氷菓に当てはまる場合 : 4

入力例 1

10 8

出力例 1

1

このスヌケアイスには、無脂乳固形分が 10 パーセント、乳脂肪分が 8 パーセント含まれているため、乳固形分は 18 パーセント含まれています。
乳固形分が 15 パーセント以上、乳脂肪分が 8 パーセント以上含まれているため、アイスクリームに分類されます。従って 1 が正しい出力です。


入力例 2

1 2

出力例 2

3

乳固形分がちょうど 3 パーセント含まれているため、アイスクリームやアイスミルクには該当しませんが、ラクトアイスに該当するため 3 を出力します。


入力例 3

0 0

出力例 3

4

氷菓に分類されます。

Score : 100 points

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.

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.