#include <iostream>
#include <string>
using namespace std;

int main() {
    double height_cm, weight;

    // Output Chinese prompt text matching assignment requirements
    cout << "請輸入您的身高(公分) : ";
    cin >> height_cm;
    cout << "請輸入您的體重(公斤) : ";
    cin >> weight;

    double height_m = height_cm / 100.0;
    double bmi = weight / (height_m * height_m);

    string category;

    if (bmi < 18.5) {
        category = "體重過輕";
    } else if (bmi < 24) {
        category = "健康體位";
    } else if (bmi < 27) {
        category = "過重";
    } else if (bmi < 30) {
        category = "輕度肥胖";
    } else if (bmi < 35) {
        category = "中度肥胖";
    } else {
        category = "重度肥胖";
    }

    cout << "您的 BMI 值為" << (int)bmi << "(" << category << ")" << endl;

    return 0;
}