#C2870. Time Conversion: Hours, Minutes, and Seconds to Total Seconds

    ID: 46234 Type: Default 1000ms 256MiB

Time Conversion: Hours, Minutes, and Seconds to Total Seconds

Time Conversion: Hours, Minutes, and Seconds to Total Seconds

You are given a time in hours, minutes, and seconds. Your task is to convert the given time into its total number of seconds. The conversion is performed using the formula:

\( total\_seconds = hours \times 3600 + minutes \times 60 + seconds \)

Note that the input constraints are:

  • 0 \(\leq\) hours \(\leq\) 23
  • 0 \(\leq\) minutes \(\leq\) 59
  • 0 \(\leq\) seconds \(\leq\) 59

Read the input from stdin and write the output to stdout.

inputFormat

The input consists of a single line containing three space-separated integers representing the number of hours, minutes, and seconds respectively.

outputFormat

Output a single integer representing the total number of seconds calculated from the given hours, minutes, and seconds.

The total seconds is computed as:

\( total\_seconds = hours \times 3600 + minutes \times 60 + seconds \)

## sample
2 15 30
8130