题目描述
Problem Description
Today, I'm shopping with my admired senpai! After shopping, we'll have tea together and create many other memories...
I didn't notice it's already this late! If I don't get home by the 18:00 curfew, Papa will get angry><.
So, as a friend, you are tasked with calculating how many minutes are left until the curfew from the current time.
Input Format
The input is given from the standard input in the following format:
$ h $ $ m $
- The first line contains two integers $h\ (0\ ≦\ h\ ≦\ 17)$, $m\ (0\ ≦\ m\ ≦\ 59)$ separated by a space. These represent the current time in 24-hour notation as $ h $ hours and $ m $ minutes exactly.
Output Format
Output how many minutes are left until the curfew at 18:00. Ensure a newline at the end of the output.
Sample Input and Output
Sample Input #1
16 23
Sample Output #1
97
Sample Input #2
17 59
Sample Output #2
1
Sample Input #3
13 0
Sample Output #3
300
Sample Input #4
2 7
Sample Output #4
953
Notes/Hints
Sample Explanation 1
The current time is 16:23. There are 1 hour and 37 minutes left until the curfew, so the answer is $60\ +\ 37\ =\ 97$.
Sample Explanation 2
There's only 1 minute left! Hurry up!
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分