题目描述
Problem Description
Given a time in the 24-hour format $H:M$, output the time that is 45 minutes earlier in the 24-hour format.
Input Format
The first line contains two positive integers $H$ and $M$.
Output Format
Output two integers representing the time 45 minutes earlier.
Sample Input and Output
Sample Input #1
10 10
Sample Output #1
9 25
Sample Input #2
0 30
Sample Output #2
23 45
Sample Input #3
23 40
Sample Output #3
22 55
Notes
[Data Range and Constraints]
- For $100\%$ of the data, $0 \le H \le 23$ and $0 \le M \le 59$.
[Hint and Attribution]
Translated from COCI 2009-2010 CONTEST #7 Task 1 SPAVANAC.
This problem is scored according to the original COCI settings, with a maximum score of $30$.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
10 10
样例输出
9 25