Problem2320--Remaining Time

2320: Remaining Time

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

Time Limit: 2 sec / Memory Limit: 256 MB

Score : 100100 points

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, 9:009:00 p.m. is referred to as "2121 o'clock".
The current time is AA o'clock, and a contest will begin in exactly BB hours. When will the contest begin? Answer in 24-hour time.

Constraints

  • 0 \leq A,B \leq 230A,B23
  • AA and BB are integers.

Input

The input is given from Standard Input in the following format:
AABB

Output

Print the hour of the starting time of the contest in 24-hour time.

Sample Input Copy

23 2

Sample Output Copy

1

HINT

The contest will begin at 11 o'clock the next day.

Source/Category