TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Body mass index (BMI) is a statistical measure of the weight of a person scaled according to height. It was invented between 1830 and 1850 by the Belgian polymath Adolphe Quetelet during the course of developing “social physics”.
BMI is defined as the individual's body weight divided by the square of their height. The formulas universally used in medicine produce a unit of measure of kg/m2. Body mass index may be accurately calculated using the formulas below.

BMI can also be determined using a BMI chart, which displays BMI as a function of weight (horizontal axis) and height (vertical axis) using contour lines for different values of BMI or colors for different BMI categories.

A frequent use of the BMI is to assess how much an individual's body weight departs from what is normal or desirable for a person of his or her height. The weight excess or deficiency may, in part, be accounted for by body fat (adipose tissue) although other factors such as muscularity also affect BMI significantly. Human bodies rank along the index from around 15 (near starvation) to over 40 (morbidly obese). This statistical spread is usually described in broad categories: underweight, normal weight, overweight, obese and morbidly obese. The particular BMI values used to demarcate these categories varies based on the authority, the CDC and the WHO regard a BMI of less than 18.5 as underweight and may indicate malnutrition, an eating disorder, or other health problems, while a BMI greater than 25 is considered overweight and above 30 is considered obese. These ranges of BMI values are valid only as statistical categories when applied to adults, and do not predict health.
Given some height and weight, decide each person is underweight, normal, overweight or obese.

Input Format

There are several lines in the input data. Each line start by a person name, followed by this person’s height (in cm) and weight (in kg). There’s no space in person name, the length of name is at most 100.

Output Format

For each person, output the BMI round to two digits and one of underweight, normal overweight and obese.

Sample Input 1

DE 180cm 65kg
Bee 200cm 70kg

Sample Output 1

20.06 normal
17.50 underweight

Hints

Problem Source

Migrated from old NTUJ.

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 2048