P8071 [COCI 2009/2010 #7] SPAVANAC
Description
Given a time $H:M$ in the $24$-hour format, output the time in the $24$-hour format that is $45$ minutes earlier than it.
Input Format
The first line contains two integers $H, M$.
Output Format
Output two integers representing the time $45$ minutes earlier.
Explanation/Hint
**【Constraints】**
- For $100\%$ of the testdata, $0 \le H \le 23$, $0 \le M \le 59$.
**【Hints and Notes】**
**This problem is translated from [COCI 2009-2010](https://hsin.hr/coci/archive/2009_2010/) [CONTEST #7](https://hsin.hr/coci/archive/2009_2010/contest7_tasks.pdf) _Task 1 SPAVANAC_.**
**The score for this problem follows the original COCI settings, with a full score of $30$.**
Translated by ChatGPT 5