HAPPY NEW YEAR

View as PDF

Submit solution

Points: 0.01 (partial)
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Author:
Problem type

Vào lúc h giờ m phút trong ngày 31 tháng 12, hãy tính xem còn bao nhiêu phút nữa thì đến 00:00 ngày 1 tháng 1.

Input

  • Một dòng gồm hai số nguyên hm, với 0 ≤ h ≤ 23, 0 ≤ m ≤ 59.

Output

  • Một số nguyên duy nhất: số phút còn lại đến 00:00.

Ví dụ

Input
23 55
Output
5

Comments

Please read the guidelines before commenting.


There are no comments at the moment.