#K5156. Calculate Working Time in Minutes

    ID: 29114 Type: Default 1000ms 256MiB

Calculate Working Time in Minutes

Calculate Working Time in Minutes

You are given two time points in the format \(HH:MM\) representing the start time and the end time of a work period. Your task is to compute the total working time in minutes. It is guaranteed that the end time is always later than the start time on the same day.

To compute the total minutes, first convert each time into minutes using the formula:

[ \text{total_minutes} = \text{hours} \times 60 + \text{minutes} ]

Then, the working duration in minutes is given by the difference between the end time and the start time.

inputFormat

The input is read from standard input. The first line contains the start time in HH:MM format and the second line contains the end time in HH:MM format.

outputFormat

Output the total working time in minutes to standard output.

## sample
09:00
17:30
510