Kalinko is a junior software developer, who is mostly doing freelance work for random contractors. He has just been hired by a fitness instructor and is been tasked to create a software, which will assist the instructor in preparing healthy diets for his customers. In order to prepare the diets, the fitness instructor needs to know the necessary daily calorie intake for each of his clients.
The daily calorie intake (DCI), is calculated by multiplying the Basal Metabolic Rate (BMR) of the client, by a constant, which is determined by the number of workouts that the person does per week.
The BMR is calculated with the following formula:
Men: BMR = 66.5 + (13.75 x weight in kg) + (5.003 x height in cm) – (6.755 x age in years)
Women: BMR = 655 + (9.563 x weight in kg) + (1.850 x height in cm) – (4.676 x age in years)
Once the BMR is calculated, we can get the person's DCI, using the following table:
Also, the fitness instructor that hired Kalinko, lives in the United States, which means that the weight and the height of his clients, will be given in an Imperial format – pounds (lbs.) for the weight and inches for the height. In order to make the BMR formulas work, Kalinko will have to convert Imperial values into Metric values.
Assume that 1 inch has 2.54cm and 1kg has 2.2lbs.
Your job is to help Kalinko with his first big contract and create the software for him. You will be given a person's weight in pounds (lbs.), height in inches, age, gender and number of weekly workouts, each at a separate line. Your only output, should be the person's daily calorie intake (DCI). The DCI should be rounded down to the nearest integer number.
The input should be read from the console. It will consist of exactly 5 input values, each at a separate line.