Output $-1$ if Sasha not only will not sleep, but also will not have time to complete all the unfinished homework.

Otherwise, output two integers: the number of hours and the number of minutes Sasha will sleep.