eolymp
bolt
Try our new interface for solving problems
Problems

Cost of call

Cost of call

Find the cost of a phone call in kopecks with duration of $n$ seconds, if the connecting cost is $a$ kop., the tariffication is per minute, that is the first second of each minute is charged to pay $b$ kop. \InputFile Three non-negative integers $a, b$ and $n~(0 \le a, b \le 99, 0 \le n \le 86400)$. \OutputFile Print the cost of a phone call in kopecks.
Time limit 1 second
Memory limit 128 MiB
Input example #1
5 10 120
Output example #1
25