A Good Deed
Limits: 2 sec., 256 MiB
This statement was translated automatically from Ukrainian.
Zenyk is incredibly fed up with the damned ruscists. Right on the first day of the war, he donated \(b\) hryvnias to the Armed Forces of Ukraine. Zenyk particularly hates air raid alerts, and therefore every time he heard one, he donated another \(x\) hryvnias to the Armed Forces of Ukraine.
Calculate how much he donated in total if there were \(k\) air raids.
Carefully read the output format section in the output data. In this problem, you need to output only one number — the total amount of hryvnias Zenyk donated. Printing any other text or data will be considered an incorrect answer.
Input
The single line contains three integers \(b\), \(k\), and \(x\) — the initial donation, the number of air raids, and the number of hryvnias he donates during air raids, respectively.
Output
In a single line, print one integer — the total amount of hryvnias donated by Zenyk.
Constraints
\(1 \le b \le 10^9\),
\(1 \le k \le 10^6\),
\(1 \le x \le 10^3\).
Samples
| Input (stdin) | Output (stdout) |
|---|---|
| 47 4 7 | 75 |
Notes
\(47 + 7 + 7 + 7 + 7 = 75\).
Submit a solution
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|
| Element Type | Created | Who | Problem | Compiler | Result | Time (sec.) | Memory (MiB) | # | Actions |
|---|