#include <stdio.h>

/*
Algorithm:


*/

int main(void){
	//Ask for height
	printf("Please enter your height in inches.");
	
	//read in height
	int height;
	scanf("%d",&height);

	//Ask for weight
	printf("Please enter your weight in pounds. ");
	
	int weight;
	scanf("%d",&weight);

	//calculate height squared
	int heightsquared = height * height;

	//calculate weight / height squared
	float equationpart = (float)weight / heightsquared;

	//calculate BMI
	float BMI = equationpart * 703;

	printf("Your BMI is %.2f.\n",BMI);

	if (BMI < 18.5){
		printf("You are underweight.\n");
	}
	if (BMI >= 18.5 && BMI <= 24.9){
		printf("You are normal weight.\n");	
	}
	if (BMI > 24.9){
		printf("You are overweight.\n");
	}

	return 0;
}
