AtCoder Beginner Contest 057
A
Remaining Time
AtCoder
⌀ 0
原题
←B →
翻译中…

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.

翻译中…

样例

Input #1
9 12
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.
Input #2
19 0
Output #2
19
The contest has just started.
Input #3
23 2
Output #3
1
The contest will begin at $1$ o'clock the next day.
题目信息
题号
abc057_a
时间限制
2 s
内存限制
256 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。