Musk Colonizing Mars
Elon Musk often asks a question “Do you think I’m insane?”. We don’t know right? But we all know that Elon Musk is planning to colonize Mars. But how much it will cost to travel to Mars for a person? This is a hard question to answer.
Elon Musk wants to inspire young people to go and colonize Mars. And he also wants to choose people with less weight. So he plans to fix the cost in a way so that young and people with less weight have to pay less. He will take the Age and Weight of a person and calculate his Cost according to the following formula-
Cost = (X
* age) + (X
Here X is a favorite number of Elon Musk.
Input will contain three integer numbers Age, Weight and X (1<=Age,Weight,X<=1000).
Print only one integer - the Cost according to the formula.
2 5 3