Time Difference

Problem Statement

You are given two moments of time on the same day: hours, minutes, and seconds. Determine how many seconds passed between them.

Input

Six integers: h1 m1 s1 and h2 m2 s2 (second moment is not earlier).

Output

Print the number of seconds between the two moments.

Example

[{'input': '1\n1\n1\n2\n2\n2', 'output': '3661'}, {'input': '1\n2\n30\n1\n3\n20', 'output': '50'}]