LearnPy Hub
← Operators problems
Hard

Clock Arithmetic

A 24-hour clock shows hour h. Read h and a number of hours n to add, and print the hour shown afterwards.

Input

Two integers: h (0–23), n ≥ 0.

Output

The new hour 0–23.

Sample 1

Input
22
5
Output
3

Sample 2

Input
0
24
Output
0
solution.py
Output appears here
Clock Arithmetic · Python practice problem · LearnPy Hub