A - Remaining Time 解説 /

実行時間制限: 2 sec / メモリ制限: 256 MB

配点 : 100

問題文

イルカはプログラミングコンテスト好きで、今日はAtCoderのコンテストに参加します。
現在時刻は、24 時間表記 (0:00〜23:59)A 時ちょうどであり、コンテストがちょうど B 時間後に始まります。
コンテストの開始時刻は、24 時間表記で何時ちょうどでしょうか?

制約

  • 0≦A,B≦23
  • A,B は整数である。

入力

入力は以下の形式で標準入力から与えられる。

A B

出力

コンテストの開始時刻を 24 時間表記で出力せよ。


入力例 1

9 12

出力例 1

21

現在時刻は 9 時ちょうどであり、その 12 時間後の時刻は 21 時ちょうどなので、21 と出力します。


入力例 2

19 0

出力例 2

19

今、コンテストが始まりました。


入力例 3

23 2

出力例 3

1

開始時刻は翌日の 1 時です。

Score : 100 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: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 begin? Answer in 24-hour time.

Constraints

  • 0 \leq A,B \leq 23
  • A and B are integers.

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.


Sample Input 1

9 12

Sample Output 1

21

In this input, the current time is 9 o'clock, and 12 hours later it will be 21 o'clock in 24-hour time.


Sample Input 2

19 0

Sample Output 2

19

The contest has just started.


Sample Input 3

23 2

Sample Output 3

1

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