\begin{problem}{New Time}{standard input}{standard output}{2 seconds}{512 megabytes}

Nikolay has a digital clock that displays time in 24-hour format, showing two integers: hours (from $00$ to~$23$) and minutes (from $00$ to $59$). For example, the clock can show \t{00:00}, \t{18:42}, or \t{23:59}.

The clock has two buttons that can be used for manual adjustment:
\begin{itemize}
\item Button A sets the clock forward by $1$ minute. For example, \t{05:33} becomes \t{05:34}, \t{16:59} becomes \t{17:00}, and \t{23:59} becomes \t{00:00}.
\item Button B sets the clock forward by $1$ hour. For example, \t{01:42} becomes \t{02:42}, and \t{23:14} becomes \t{00:14}.
% \item Button $B$ sets the clock backward by $1$ minute. For example, \t{21:09} becomes \t{21:08}, \t{10:00} becomes \t{09:59}, and \t{00:00} becomes \t{23:59}.
% \item Button $D$ sets the clock backward by $1$ hour. For example, \t{19:28} becomes \t{18:28}, and \t{00:56} becomes \t{23:56}.
\end{itemize}

Nikolay has noticed that the time on his clock does not look right. He wants to adjust the clock to the correct time by pressing the buttons as few times as possible.

Find the smallest number of button presses needed to adjust the clock.

\InputFile
The first line contains the time shown on the clock in the \t{hh:mm} format ($00 \le \mathtt{hh} \le 23$; $00 \le \mathtt{mm} \le 59$).

The second line contains the correct time in the same format.


\OutputFile
Print a single integer~--- the smallest number of button presses Nikolay needs to adjust the time on his clock.

\Examples

\begin{example}
\exmpfile{example.01}{example.01.a}%
\exmpfile{example.02}{example.02.a}%
\exmpfile{example.03}{example.03.a}%
\end{example}

\Note
In the first example test, Nikolay can adjust the time by pressing button A three times.

In the second example test, Nikolay should press button A and button B $12$ times each.

\end{problem}

