Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/integer-soat-necha-boladi

What time will it be?

Easy 1000 ms 64 MB 16%
Share

It is exactly $h$ o'clock now (in $24$-hour format, from $0$ to $23$). Find what hour it will be in $t$ hours.

Moving around the clock face

Input

One line with two integers: $h$ and $t$.

Output

One integer from $0$ to $23$.

Note

$0 \le h \le 23$
$0 \le t \le 10^{9}$

Examples

Input #1
20 5
Output #1
1
Input #2
9 48
Output #2
9

Sign in to submit a solution

Signing up is free and takes a minute.