Олимпиадный тренинг

Задача 41231. Time difference


The values ​​of two points of time belonging to the same day are given: hours, minutes and seconds for each of the points of time. It is known that the second moment of time came not earlier than the first. Determine how many seconds have elapsed between two points in time.

Input
The program receives three integers as input — hours, minutes, seconds representing the first point in time and three integers representing the second point in time.

Imprint
Print the number of seconds between these times.
 
 
Examples
# Input Output
1
1
1
1
2
2
2
3661
2
1
2
thirty
1
3
20
50