TrainingHeartRate1

Time Limit: 1000 ms Memory Limit: 65536 KiB

Problem Description

It is recommended that you maintain your training heart rate during an aerobic workout. Your training heart rate is computed as .7 * (220 – a) + .3 * r, where a is your age and r is your resting heart rate (your pulse when you first wake). Write a program that declares two variables, one to store a person's age and the other to store a person's resting heart rate. Calculate and display this person's training heart rate. you should accept input from the console window and display output to the console window.

Input

Input two values for the variables from the console window.

Output

Display this person's age ,resting heart rate and training heart rate to the console window.

Sample Input

18 75

Sample Output

Given your age of 18 and your resting heart rate of 75.0.
Your training heart rate is 163.89999999999998.

Hint

Source

maxj