LearnPy Hub
← Arena
EasyRating 800

Minutes to Midnight

Given the time as hours and minutes (not midnight), print how many minutes are left until midnight.

Input

Two integers h (0–23) and m (0–59).

Output

Minutes.

Sample 1

Input
23 55
Output
5

Sample 2

Input
23 0
Output
60
solution.py
Output appears here
Minutes to Midnight · Python Arena problem · LearnPy Hub