This page is still under construction.

Parts of this page are still being built. What you see may change.

Body Mass Index

Time limit1sMemory limit128 MB

Summary
Read a weight and a height, compute weight divided by height squared, and print the BMI category.
Level

Easy2 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

The Body Mass Index (BMI) is one of the measurements a doctor uses to assess an adult's health. The doctor measures the patient's weight (in kilograms) and height (in metres), then computes the BMI with the formula

BMI=weightheight×height\text{BMI} = \frac{\text{weight}}{\text{height} \times \text{height}}

Given the patient's weight and height, calculate the BMI and print the message that matches the table below.

BMI valueMessage
Greater than 25Overweight
Between 18.5 and 25.0 (inclusive)Normal weight
Less than 18.5Underweight

Input

The first line contains the weight in kilograms. The second line contains the height in metres. Both values are positive real numbers.

Output

Print exactly one line: the message that corresponds to the computed BMI — Overweight, Normal weight, or Underweight.

Examples2

  1. Example 1

    Input
    69
    1.73
    
    Expected output
    Normal weight
    
  2. Example 2

    Input
    84.5
    1.8
    
    Expected output
    Overweight