from flask import Flask
app = Flask(__name__)

@app.route('/BMI/<int:weight>/<int:height>')
def index ( weight, height):
    height = float(height)/100
    BMI = float(weight) / float(height*height)
    if ( BMI < 16):
         return 'Severely underweight'
    elif ( 16 <= BMI < 18.5):
        return ' Underweight'
    elif (18.5 <= BMI < 25):
        return 'Normal'
    elif (25 <= BMI < 30):
        return 'Overweight'
    else:
        return 'Obese'

if __name__ == '__main__':
    app.run(debug=True)
    