#atcoderABC057A. Remaining Time
Remaining Time
Problem Statement
Dolphin loves programming contests. Today, he will take part in a contest in AtCoder.
In this country, 24-hour clock is used. For example, p.m. is referred to as " o'clock".
The current time is o'clock, and a contest will begin in exactly hours. When will the contest begin? Answer in 24-hour time.
Constraints
- and are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the hour of the starting time of the contest in 24-hour time.
Input 1
9 12
Output 1
21
In this input, the current time is o'clock, and hours later it will be o'clock in 24-hour time.
Input 2
19 0
Output 2
19
The contest has just started.
Input 3
23 2
Output 3
1
The contest will begin at o'clock the next day.