#K11696. BMI Categorization
BMI Categorization
BMI Categorization
You are given a weight in kilograms and a height in meters. Your task is to calculate the Body Mass Index (BMI) using the formula:
\( \text{BMI} = \frac{\text{weight}}{(\text{height})^2} \)
Then, you should determine the BMI category according to the following criteria:
- Underweight: BMI < 18.5
- Normal weight: 18.5 ≤ BMI < 24.9
- Overweight: 24.9 ≤ BMI < 29.9
- Obesity: BMI ≥ 29.9
Print the corresponding category as a single line output.
inputFormat
A single line containing two space-separated numbers: the weight (in kilograms) and the height (in meters).
outputFormat
A single line containing one of the following strings: 'Underweight', 'Normal weight', 'Overweight', or 'Obesity', which represents the BMI category.## sample
50 1.75
Underweight