Cost of call#2391

Cost of call

1 second
128 megabytes
Easy

Find the cost of a phone call in kopecks with a duration of seconds, if the connection cost is kopecks and the tariff is per minute; that is, at the first second of each minute, a charge of kopecks is applied.

Input

Three non-negative integers , , and (0 \le a, b \le 99,\ 0 \le n \le 86400).

Output

Print the cost of the phone call in kopecks.

Examples

Example 1

Loading
Loading