Clock Milliseconds


Submit solution

Points: 1
Time limit: 2.0s
Memory limit: 256M

Problem types
Allowed languages
Python

Write a program that reads a time given in hours, minutes, and seconds.

Print how many milliseconds have passed since midnight.

There are:

  • 1000 milliseconds in 1 second
  • 60 seconds in 1 minute
  • 60 minutes in 1 hour

Input

The input contains three integers, h, m, and s, on one line.

h is the number of hours. m is the number of minutes. s is the number of seconds.

Output

Output the total number of milliseconds.

Sample Input

0 1 1

Sample Output

61000

Comments

There are no comments at the moment.