---
# System prepended metadata

title: python BMI2 410999020

---

# python BMI2 410999020
```python=
while True:
  h=eval(input())
  if h==-9999:
    break
  
  w=eval(input())
  if(w==-9999):
    break
  
  bmi = w/(h/100)**2

  if bmi < 18.5:
    s="under weight"
  elif bmi >=18.5 and bmi <25:
    s="normal"
  elif bmi >=25.0 and bmi <30:
    s="over weight"
  else:
    s="fat"

  print("BMI: {:.2f}\nState: {}".format(bmi,s))
```
