Time Limit: 2 sec / Memory Limit: 1024 MB
問題文
高橋君は以下のような基準で人を 3 種類のタイプ(A, B, Cのいずれか)に分類することにしました。
- BMIが 20 未満ならばA
- BMIが 20 以上 25 未満ならばB
- BMIが 25 以上ならばC
なお、身長が h m、体重が w kgの人のBMIは \frac{w}{h^2} と表せます。
身長が H cm、体重が W kgの人がどのタイプに分類されるかを判定してください。
制約
- 100 \leq H \leq 200
- 30 \leq W \leq 200
- 入力はすべて整数
入力
入力は以下の形式で標準入力から与えられる。
H W
出力
身長が H cm、体重が W kgの人が分類されるタイプ(A, B, Cのいずれか)を出力してください。
入力例 1
170 55
出力例 1
A
身長が 170 cm、体重が 55 kgの人のBMIは 19.03114... であり、20 未満なのでAに分類されます。
入力例 2
100 200
出力例 2
C
BMIが 200 であり、25 以上なのでCに分類されます。
Problem Statement
Takahashi is going to classify a person into the following three types (A, B, or C):
- A: Their BMI is strictly less than 20.
- B: Their BMI is 20 or greater, and strictly less than 25.
- C: Their BMI is 25 or greater.
The BMI of a person of height h meters and weight w kilograms is represented as \frac{w}{h^2}.
Determine the type of a person of height H centimeters and weight W kilograms.
Constraints
- 100 \leq H \leq 200
- 30 \leq W \leq 200
- All input values are integers.
Input
The input is given from Standard Input in the following format:
H W
Output
Print the type (A, B, or C) of a person of height H centimeters and weight W kilograms.
Sample Input 1
170 55
Sample Output 1
A
The BMI of a person of height 170 centimeters and weight 55 kilograms is 19.03114..., which is less than 20. Thus, they are classified as type A.
Sample Input 2
100 200
Sample Output 2
C
Their BMI is 200, which is greater than or equal to 25, so they are classified as type C.