Hide

M-Climb

At the start of every semester, Colorado School of Mines has a tradition of climbing to the top of lookout mountain so that freshmen can place a rock from their hometown onto the structure. Once the rocks are placed at the M, students cover them (and themselves) in white paint.

Mines’ President Johnson is trying to plan the budget and wants an estimate for how much paint they need to buy. For the purposes of estimating, each rock requires exactly 1 liter of paint. Given the cost of a liter of paint and some number of rocks, how much money should be allocated in the budget?

Input

The input consists of three lines. The first line contains a single integer, $m$ ($0 \le m \le 1\, 000$), representing the number of rocks brought to the M. The next line contains a single integer, $n$ ($0 \le n \le 1\, 000$), representing the cost of a liter of paint in US dollars. The final line contains an integer, $y$ ($1873 \le y \le 3000$), representing the year the budget is for.

Output

A single integer with the cost of buying all of the paint.

Sample Input 1 Sample Output 1
50
10
2021

500

Sample Input 2 Sample Output 2
26
7
2022

182

CPU Time limit 1 second
Memory limit 1024 MB
Downloads
Author
Jack Garner
Source [email protected] High School Programming Competition 2021
License

Please log in to submit a solution to this problem