Input two lines each contains a string in the form of , denoting a given moment.
Only one line containing one integer, denoting the answer.
12:00:00 17:00:00
18000
23:59:59 00:00:00
86399