Trạng thái

\(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.
Thông tin
Thông tin bài tập
Gửi bài giải
Điểm
100
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
250 M
I/O
stdin -> stdout
Tác giả
Loại đề bài
A01 - Nhập môn: Biến, hằng và phép toán
Ngôn ngữ cho phép
C, C#, C++, Java, Pascal, Python, Text