You are given two moments of time on the same day: hours, minutes, and seconds. Determine how many seconds passed between them.
Six integers: h1 m1 s1 and h2 m2 s2 (second moment is not earlier).
Print the number of seconds between the two moments.
[{'input': '1\n1\n1\n2\n2\n2', 'output': '3661'}, {'input': '1\n2\n30\n1\n3\n20', 'output': '50'}]