## Minutes Before the New Year New Year is coming and you are excited to know how many minutes remain before the New Year. You know that currently the clock shows **ℎ** hours and **𝑚** minutes, where **0≤ℎℎ<24** and **0≤𝑚𝑚<60**. We use 24-hour time format! Your task is to find the number of minutes before the New Year. You know that New Year comes when the clock shows 0 hours and 0 minutes. ### Input ``` 23 55 23 0 0 1 4 20 23 59 ``` ### Output ``` 5 60 1439 1180 1 ```