Remaining Time
Point: 100.0
Time limit: 1.0s
Memory limit: 250 M
Input:
stdin
Output:
stdout
Author:
Problem type
A - Nhập môn: 01 - Biến, hằng và phép toán
Ngôn ngữ cho phép
C, C#, C++, Java, Pascal, Python, Text
\(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.