PROBLEM • ltpt_a01b000002
LTPT - a01b000002: Remaining Time
~GiaBao~ loves programming contests. Today, he will take part in a contest in ~TMath~. In this place, 24-hour clock is used. For example, 9:00 p.m. is referred to as “21 o’clock”. The current time is ~A~ o’clock, and a contest will begin in exactly ~B~ hours. When will the contest end? Answer in 24-hour time.
Input
- The input is given from Standard Input in the following format: ~A~ ~B~
Output
- Print the hour of the starting time of the contest in ~24-hour~ time.
Constraints
- ~0≤A~, ~B≤23~
- ~A~ and ~B~ are integers.
Example
Sample Input 1
9 12
Sample Output 1
21
Sample Input 2
19 0
Sample Output 2
19
Sample Input 3
23 2
Sample Output 3
1
Explain
- In input 1, the current time is 9 o’clock, and 12 hours later it will be 21 o’clock in 24-hour time.
Comments