Problem:
 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.

Solution (Python):
def iroha():
    a, b = map(int, input().split())

    num = a + b
    if num >= 24:
        new_num = num % 24
        print(new_num)
    else:
        print(num)

if __name__ == "__main__":
    iroha()

Solution (Python):
A, B = map(int, input().split())
print((A+B)%24)

Solution (Python):
x,y = map(int, input().split())
print((x+y)%24)

Solution (Python):
A,B=map(int,input().split())
ans=(A+B)%24
print(ans)

Solution (Python):
A,B=map(int,input().split())
print((A+B)%24)

Solution (Python):
a,b = map(int,input().split())

print((a+b) % 24)

Solution (Python):
a, b = map(int, input().split())

print((a + b) % 24)

Solution (Python):
x,y = map(int,input().split())
print((x+y)%24)

Solution (Python):
a,b = map(int,input().split())
if a+b >= 24:
    print((a+b)%24)
else:
    print(a+b)

Solution (Python):
a,b = map(int,input().split())

if a+b > 23:
  print(a-24+b)
else:
  print(a+b)

Solution (Python):
a, b = map(int, input().split())
print((a+b) % 24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a,b=map(int,input().split())

if a+b>=24:
    print(a+b-24)
else:
    print(a+b)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
A,B=map(int,input().split())
if A+B>=24:
  print(A+B-24)
elif A+B<24:
  print(A+B)

Solution (Python):
A, B = map(int,input().split())
print((A+B)%24)

Solution (Python):
a, b = map(int, input().split())
print((a+b)%24)

Solution (Python):
A, B = map(int, input().split())
print((A + B) % 24)

Solution (Python):
A,B = map(int,input().split())
print((A+B) % 24)

Solution (Python):
a,b = map(int,input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
a,b=map(int,input().split(" "))
print((a+b)%24)

Solution (Python):
A,B = map(int,input().split())
print(A+B-24 if A+B>=24 else A+B)

Solution (Python):
A, B = map(int, input().split())
if A+B<24:
    print(A+B)
else:
    print(A+B-24)

Solution (Python):
a,b = map(int,input().split())
t = a + b
if t >= 24:
    print(t - 24)
else:
    print(t)

Solution (Python):
a, b = map(int, input().split())
x = a + b
if x < 24:
  print(x)
else:
  print(x - 24)

Solution (Python):
from sys import stdin
inp = lambda : stdin.readline().strip()

a, b = [int(x) for x in inp().split()]
print((a+b)%24)

Solution (Python):
print(sum(map(int,input().split()))%24)

Solution (Python):
A, B = map(int, input().split())
if A + B < 24:
  print(A + B)
else:
  print(A + B - 24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a,b=map(int,input().split())
if a+b >= 24:
    print(a+b-24)
else:
    print(a+b)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a, b = input().split()

if int(a) + int(b) < 24:
    print(int(a) + int(b))
elif int(a) + int(b) >= 24:
    print(int(a) + int(b) - 24)

Solution (Python):
a, b = map(int, input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
print(a+b if a+b<24 else a+b-24)

Solution (Python):
a,b = map(int,input().split())
if a + b < 24:
    print(a + b)
else:
    print(a + b - 24)

Solution (Python):
a,b = map(int,input().split())
if a + b < 24:
    print(a + b)
else:
    print(a + b - 24)

Solution (Python):

def main():
    a, b = list(map(int, input().split()))
    ans = a + b
    if ans >= 24:
        print((24-ans)*-1)
    else:
        print(ans)



if __name__ == '__main__':
    main()

Solution (Python):
print(eval(input().replace(' ','+'))%24)

Solution (Python):
def main():
    a, b = map(int, input().split())

    ans = a + b
    if ans >= 24:
        ans -= 24

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
import sys



def input():
    return sys.stdin.readline().rstrip()


def main():
    A,B=map(int,input().split())
    print((A+B)%24)


if __name__ == "__main__":
    main()

Solution (Python):
A, B = map(int, input().split())
print((A+B)%24)

Solution (Python):

a,b=map(int,input().split())
print(int((a+b)%24))

Solution (Python):

def main():
    a, b = map(int, input().split())

    if a+b < 24:
        print(a+b)
    else:
        print(a+b-24)
        
if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int,input().split())
print((a+b) % 24)

Solution (Python):
A, B = map(int, input().split())
print((A+B)%24)

Solution (Python):

A, B = map(int, input().split())

if (0 <= A & A <= 23) & (0 <= B & B <= 23):
    if (A + B) > 24:
        print((A + B) - 24)
    elif (A + B) == 24:
        print(0)
    else:
        print(A + B)

Solution (Python):
a, b = map(int,input().split())
print((a+b) % 24)

Solution (Python):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    A, B = map(int, readline().split())

    print((A+B) % 24)

if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())
if a+b >=24:
  print(a+b-24)
else:
  print(a+b)

Solution (Python):
a, b = map(int, input().split())

ans = a + b;

if ans >= 24:
    ans = ans - 24

print(ans)

Solution (Python):
a,b = map(int,input().split())
print(a+b if a+b < 24 else (a+b)%24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a,b=map(int,input().split())
print(a+b if a+b < 24 else a+b-24)

Solution (Python):
a,b = map(int,input().split())
ans = (a + b) % 24
print(ans)

Solution (Python):



A, B = map(int, input().split())

result = A + B
if result >= 24:
    result -= 24

print(result)

Solution (Python):
a, b = map(int, input().split())

print((a + b) % 24)

Solution (Python):
A, B = map(int, input().split())
print((A+B)%24)

Solution (Python):
a, b = map(int, input().split())
print((a+b)%24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())


print((a+b)%24)

Solution (Python):
a=list(map(int,input().split()))

b=a[0]+a[1]
if b>=24:
  b-=24

print(b)

Solution (Python):
A, B = map(int, input().split())
print((A + B) % 24)

Solution (Python):


A, B = map(int, input().split())
start = A + B

if start >= 24:
    print(start - 24)
else:
    print(start)

Solution (Python):
a,b=map(int,input().split())
if a+b>=24:
  print(a+b-24)
else:
  print(a+b)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):

A, B = map(int,input().split())


start = A + B
if start >= 24:
    print(start - 24)
else:
    print(start)

Solution (Python):






A,B = map(int,input().split())

answer = A + B

if answer < 24:
    print(answer)
else:
    print(answer - 24)

Solution (Python):
a,b=list(map(int,input().split()))
print((a+b)%24)

Solution (Python):
a,b = map(int,input().split())

print((a + b) % 24)

Solution (Python):




A,B = map(int,input().split())

if A + B < 24:
    print(A + B)

else:
    print((A + B) - 24)

Solution (Python):
a, b = map(int, input().split())

print((a + b) % 24)

Solution (Python):



import sys
from io import StringIO
import unittest


class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)

    def test_入力例_1(self):
        input = """9 12"""
        output = """21"""
        self.assertIO(input, output)

    def test_入力例_2(self):
        input = """19 0"""
        output = """19"""
        self.assertIO(input, output)

    def test_入力例_3(self):
        input = """23 2"""
        output = """1"""
        self.assertIO(input, output)


def resolve():
    A, B = map(int, input().split())
    print((A+B) % 24)


if __name__ == "__main__":
    
    resolve()

Solution (Python):

A, B = map(int, input().split())


if A + B > 23:
    print((A + B) % 24)
else:
    print(A + B)

Solution (Python):
a, b = map(int, input().split())

if a + b < 24:
    print(a + b)
else:
    print(a + b -24)

Solution (Python):
import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())

A,B = MI()
print((A+B) % 24)

Solution (Python):
A,B = map(int,input().split())

if A + B < 24:
    print(A + B)
if A + B >= 24:
    print(A + B - 24)

Solution (Python):
A, B = map(int, input().split())

if A + B <= 23:
    print(A + B)
else:
    print((A + B) - 24)

Solution (Python):
A, B = map(int, input().split())

if A + B >= 24:
    print(A + B - 24)
else:
    print(A + B)

Solution (Python):

A, B = map(int, input().split())


if A + B == 24:
    w = 0
elif A + B > 24:
    w = abs(24 - (A + B))
else:
    w = A + B


print(w)

Solution (Python):
a,b=map(int,input().split());print((a+b)%24)

Solution (Python):
a,b=map(int,input().split());print([a+b,a+b-24][a+b>=24])

Solution (Python):
x,y=map(int,input().split())
print((x+y)%24)

Solution (Python):
a,b = map(int,input().split())
print((a+b)%24)

Solution (Python):

A,B = map(int,input().split())


start = A + B
if start < 24:
    print(start)
else:
    start = start - 24
    print(start)

Solution (Python):
a,b = map(int,input().split())
print((a+b)%24)

Solution (Python):
A, B = map(int, input().split())

if A + B <= 23:
    print(A + B)
else:
    print((A + B) - 24)

Solution (Python):




a, b = map(int, input().split())


if (a + b) >= 24:
    answer = (a + b) - 24
else:
    answer = a + b
print(answer)

Solution (Python):
a,b=map(int,input().split())
if a+b>23:
  print(a+b-24)
else:
  print(a+b)

Solution (Python):
S_list = list(map(int,input().split()))
ans = S_list[0] + S_list[1]
if  ans <24 :
    result = ans
else:
    result = ans - 24
print(result)

Solution (Python):


A, B = map(int, input().split())

if A + B > 23:
    print(A + B - 24)
else:
    print(A + B)

Solution (Python):










hour_a,hour_b = map(int,input().split())


contest_start_hour = 0  

contest_start_hour = hour_a + hour_b

if contest_start_hour >= 24:    
    contest_start_hour -= 24

print(contest_start_hour)

Solution (Python):
A , B = map(int,input().split())

if (A + B)<24:
    print(A + B)
elif (A + B)>=24:
    print(A + B - 24)

Solution (Python):
a,b = map(int,input().split())
b += a
if b>23:
    print(b-24)
else:
    print(b)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
A, B = map(int, input().split())

if A + B < 24:
    print(A + B)
else:
    print((A + B) - 24)

Solution (Python):
A, B = map(int, input().split())
if A + B < 24:
    print(A + B)
else:
    print(A + B - 24)

Solution (Python):
A, B = map(int, input().split())
print(A + B if A + B < 24 else A + B - 24)

Solution (Python):
A, B = map(int, input().split())
print((A + B) % 24)

Solution (Python):
def solve():
    A, B = map(int, input().split())
    print((A + B) % 24)


if __name__ == "__main__":
    solve()

Solution (Python):
a, b = map(int, input().split())

if a+b >= 24:
    print(a+b- 24)
else:
    print(a+b)

Solution (Python):

a,b = map(int,input().split())

start_time = a + b
if start_time >=24:
    print(start_time - 24)

else:
    print(start_time)

Solution (Python):
n, m = map(int, input().split())
print((n+m)%24)

Solution (Python):

a, b = map(int, input().split())

total_time= a + b


if total_time >= 24:
    answer = (total_time) % 24
elif a+b < 24:
    answer = total_time

print(answer)

Solution (Python):
a,b=input().split()
a=int(a)
b=int(b)
print((a+b)%24)

Solution (Python):








A, B = map(int, input().split())







answer = (A + B) % 24


print(answer)

Solution (Python):
a,b = map(int, input().split())

if (b+a)>=24:
    print((b+a)-24)
else:
    print(b+a)

Solution (Python):
a, b = (int(x) for x in input().split())
if a + b < 24:
    print(a + b)
else:
    print(a + b - 24)

Solution (Python):
A,B=map(int,input().split())
 
if A+B>=24:
  print(A+B-24)
else:
  print(A+B)

Solution (Python):
A,B=map(int,input().split())
print((A+B)%24)

Solution (Python):
A, B = map(int, input(). split())

time = A + B

if time < 24:
    print(time)
else:
    print(time - 24)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
a, b = map(int, input().split())

if a + b < 24:
    print(a + b)
else:
    print(a + b -24)

Solution (Python):
a,b=map(int, input().split())
print((a + b) % 24)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
A, B = map(int, input().split())
if A + B >= 24:
    print((A + B) - 24)
else:
    print(A + B)

Solution (Python):
A,B=map(int,input().split())
ans=(A+B)%24
print(ans)

Solution (Python):
current_time, remain_hour = map(int, input().split())

start_time = current_time + remain_hour

if start_time >= 24:
    start_next_day_time = start_time - 24
    print(start_next_day_time)
else:
    print(start_time)

Solution (Python):
A, B = map(int, input().split())

if A + B < 24:
    print(A + B)
else:
    print(A + B - 24)

Solution (Python):


a, b = map(int,input().split())

if a + b >= 24:
    ans = a + b - 24
else:
    ans = a + b
print(ans)

Solution (Python):

A, B = map(int, input().split())
ans = (A + B) % 24
print(ans)

Solution (Python):

A, B = map(int, input().split())
ans = (A + B) % 24
print(ans)

Solution (Python):
a,b = map(int, raw_input().split())
print (a + b) % 24

Solution (Python):
A,B = (int(T) for T in input().split())
print((A+B)%24)

Solution (Python):
a,b = map(int,input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
a, b = map(int, input().split())
if a+b >= 24:
  print(a+b-24)
else:
  print(a+b)

Solution (Python):
A, B = map(int, input().split())
print((A + B) % 24)

Solution (Python):
a, b = input().split()
a = int(a)
b = int(b)
print((a+b)%24)

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

def main():
    a, b = map(int, input().split())
    val = a + b
    if val >= 24: val -= 24
    print(val)


if __name__ == "__main__":
    main()

Solution (Python):
a, b = map(int, input().split())
if a+b >= 24:
  print(a+b-24)
else:
  print(a+b)

Solution (Python):
a,b = map(int, input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
n,r=map(int,input().split())
print((n+r)%24)

Solution (Python):
a,b = map(int,input().split())
r = (24+a+b)%24
print(r)

Solution (Python):
a,b = map(int,input().split())
print((a+b)%24)

Solution (Python):
x,y = map(int, input().split())
print((x+y)%24)

Solution (Python):
x,y = map(int, input().split())
import math
print(math.ceil((x+y)%24))

Solution (Python):
a,b = map(int, input().split())
print((a+b)%24)

Solution (Python):
a,b = map(int,input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())

print((a + b) % 24)

Solution (Python):
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext

def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a, b = i_map()

    print(a+b if a+b < 24 else a+b-24)

if __name__ == '__main__':
    main()

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
A,B=map(int,input().split())
print((A+B)%24)

Solution (Python):
A, B = map(int, input().split())
C = A + B
C %= 24
print(C)

Solution (Python):
A,B=map(int,input().split())
print((A+B)%24)

Solution (Python):
a,b = map(int, input().split())

t = a + b

if t >= 24:
    print(t-24)
else:
    print(t)

Solution (Python):
a,b = map(int,input().split())
print((a + b) % 24)

Solution (Python):
def main():
    a, b = map(int, input().split())
    print((a + b) % 24)


if __name__ == '__main__':
    main()

Solution (Python):
print(sum(map(int, input().split())) % 24)

Solution (Python):
a,b=map(int,input().split())
if a+b>=24:
  print(a+b-24)
else:
  print(a+b)

Solution (Python):
a, b = map(int, input().split())

ans = a+b
if ans >= 24:
    ans -=  24
print(ans)

Solution (Python):
a,b=map(int,input().split())
if a+b<24:
  print(a+b)
else:
  print(a+b-24)

Solution (Python):









a,b = map(int, input().split())

print( (a+b)%24 )

Solution (Python):
a, b= map(int, input().split())
print((a + b) % 24)

Solution (Python):
print(eval(input().replace(" ","+"))%24)

Solution (Python):
a, b = map(int, input().split())

if a+b >= 24:
  ans = (a+b)-24
else:
  ans = a+b

print(ans)

Solution (Python):
A,B = map(int,input().split())
N = A + B
if N <24:
    print(N)
elif N >= 24:
    print(N-24)

Solution (Python):
a, b = map(int,input().split())
 
print((a+b)%24)

Solution (Python):
a, b = list(map(int, input().split()))
if a + b < 24:
  print(a+b)
else:
  print((a+b) % 24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
A,B=map(int,input().split())
if A+B<24:
    print(A+B)
else:
    print(A+B-24)

Solution (Python):

















import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
import numpy as np
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B = MAP()
if A + B >= 24:
    print(A + B - 24)
else:
    print(A + B)

Solution (Python):
import math
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
print(sum(list(map(lambda n: int(n), input().split(" ")))) % 24)

Solution (Python):


def read_int():
    return int(input().strip())


def read_ints():
    return list(map(int, input().strip().split(' ')))


def solve():
    A, B = read_ints()
    return (A+B)%24


if __name__ == '__main__':
    print(solve())

Solution (Python):
a,b = map(int,input().split())

print((a+b)%24)

Solution (Python):
a, b = [int(x) for x in input().split()]
print((a + b) % 24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
 
print((a + b) % 24)

Solution (Python):
a, b = map(int, input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
if a+b<24:
  print(a+b)
else:
  print(a+b-24)

Solution (Python):
a, b = map(int, input().split())

print((a + b) % 24)

Solution (Python):
a, b = map(int, input().split())
if a + b < 24:
    print(a + b)
else:
    print(a + b - 24)

Solution (Python):
a, b = map(int, input().split())

print((a + b) % 24)

Solution (Python):


def main():

    A, B = map(int ,input().split())

    ans = (A + B) % 24

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
a,b=map(int,input().split())
s=a+b
if s > 23:
  s-=24
print(s)

Solution (Python):
a,b= input().split()
a,b=int(a),int(b)
if a+b <24:
    print(a+b)
elif a+b>=24:
    print(a+b-24)

Solution (Python):
a,b=map(int,input().split())
if a+b>=24:
  print(a+b-24)
else:
  print(a+b)

Solution (Python):
A,B = map(int,input().split())
print((A+B) % 24)

Solution (Python):
a, b = map(int, input().split())

if a+b>=24:
  print(a+b-24)
else:
  print(a+b)

Solution (Python):
a,b = map(int,input().split())
print((a+b)%24)

Solution (Python):
A,B = map(int,input().split())
print((A+B)%24)

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    A, B = map(int, readline().split())

    print((A + B) % 24)

    return


if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())

print((a+b)%24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a,b=map(int,input().split())
ans=(a+b)%24
print(ans)

Solution (Python):
a,b=map(int,input().split())
 
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
if a + b == 24:
    print(0)
elif a + b > 24:
    print(a + b - 24)
else:
    print(a + b)

Solution (Python):
import itertools,collections
def main():
    a,b=map(int, input().split())
    if(a+b>23):
        print(abs(24-(a+b)))
    else:
        print(a+b)

if __name__ == '__main__':
    main()

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
a , b = map(int,input().split())
print((a+b)%24)

Solution (Python):
a = list(map(int, input().split()))
b = a[0] + a[1]
print(b if b < 24 else b-24)

Solution (Python):
a = list(map(int, input().split()))

print(a[0]+a[1] if a[0]+a[1] < 24 else a[0]+a[1]-24)

Solution (Python):
a, b = map(int, input().split())
if a + b >= 24:
    print(a+b-24)
else:
    print(a+b)

Solution (Python):
print(sum(map(int,input().split()))%24)

Solution (Python):
A,B=map(int,input().split())
print((A+B)%24)

Solution (Python):
A,B = map(int,input().rstrip().split(" "))
print((A+B)%24)

Solution (Python):
A,B =map(int, input().split())

print((A + B) % 24)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
A, B = map(int, input().split())
print((A+B) % 24)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
a,b=map(int,input().split())
c = a+b
if c >=24:
  c += -24
print(c)

Solution (Python):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

A,B = I()
print((A+B)%24)

Solution (Python):
a, b = map(int, input().split())

print((a + b) % 24)

Solution (Python):
a,b = map(int, input().split())

print(a+b) if a+b < 24 else print(a+b-24)

Solution (Python):
a,b = map(int,input().split())
print(a+b if a+b<24 else a+b-24)

Solution (Python):
A, B = map(int, input().split())

ans = A + B
if ans >= 24:
  ans -= 24
else:
  pass

print(ans)

Solution (Python):
a, b = map(int, input().split())
print((a + b) % 24)

Solution (Python):
A,B=map(int,input().split())
print((A+B)%24)

Solution (Python):
A,B = (int(x) for x in input().split())
x = (A+B)%24
print (x)

Solution (Python):
A,B=map(int, input().split())
print(A+B) if (A+B) < 24 else print(A+B-24)

Solution (Python):
a, b = map(int, input().split())

print((a+b)%24)

Solution (Python):
a,b = map(int,input().split())
if a+b > 23:
    print(a+b-24)
else:
    print(a+b)

Solution (Python):
A,B=map(int,input().split())
if A+B>=24:
    print(A+B-24)
else:
    print(A+B)

Solution (Python):
a,b=[int(i) for i in input().split()]


if a+b<24:
    print(a+b)
else:
    print(a+b-24)

Solution (Python):
print(sum(list(map(int,input().split())))%24)

Solution (Python):
a, b = map(int, input().split())
print((a+b)%24)

Solution (Python):
a, b = map(int, input().split())
print(a+b-24 if a+b >= 24 else a+b)

Solution (Python):
a, b = map(int, input().split())
if a+b < 24:
  print(a+b)
else:
  print(a+b-24)

Solution (Python):
print(eval(input().replace(' ','+'))%24)

Solution (Python):
a, b = list(map(int, input().split()))

c = a + b 

if c < 24:
    print(c)
elif c == 24:
    print('0')
else:
    print(c-24)

Solution (Python):
a,b = map(int, input().split())
if a + b >= 24:
    print(a + b - 24)
else:
    print(a + b)

Solution (Python):
x,y=map(int,input().split())
print(x+y if (x+y) < 24 else x+y-24)

Solution (Python):
print(eval(input().replace(*' +'))%24)

Solution (Python):
A,B=map(int, input().split())
print((A+B)%24)

Solution (Python):
import itertools
A, B = map(int,input().split())
print((A+B)%24)

Solution (Python):
x=sum(list(map(int,input().split())))
if x>=24:
  x-=24
print(x)

Solution (Python):
A,B = map(int,input().split())
print((A+B)%24)

Solution (Python):
a, b = map(int, input().split())
x = a+b
if x>23:
	x-=24
print(x)

Solution (Python):
a,b=map(int,input().split())
ans=(a+b)%24
print(ans)

Solution (Python):
a,b=map(int,input().split())

print((a+b)%24)

Solution (Python):
A,B=map(int,input().split())
print((A+B)%24)

Solution (Python):
A, B = map(int, input().split())
print((A+B)%24)

Solution (Python):
A, B = map(int, input().split())
print((A + B) % 24)

Solution (Python):
A,B=map(int,input().split())
if A+B<24:
    print(A+B)
else:
    print(A+B-24)

Solution (Python):
a,b = input().split(" ")
h = int(a)+int(b)
if h>= 24:
    print(h -24)
else:
    print(h)

Solution (Python):
a,b = map(int, input().split())

time = (a+b)%24

print(time)

Solution (Python):
a,b = map(int,input().split())
x = (a+b)%24
print(x)

Solution (Python):
A, B = map(int, input().split())
print((A+B)%24)

Solution (Python):
a,b=map(int,input().split())
print(a+b if a+b < 24 else a + b -24)

Solution (Python):
A, B = map(int, input().split())
print((A + B) % 24)

Solution (Python):

lst = input().split()

time = int(lst[0]) + int(lst[1])

if 24 <= time:
   time = time - 24


print(time)

Solution (Python):
a, b = map(int, input().split())
print((a+b)%24)

Solution (Python):
a,b=map(int, input().split())
s=a+b
if s<24:
  print(s)
else:
  print(s-24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
print(eval(input().replace(" ","+"))%24)

Solution (Python):
N,M = map(int,input().split())

print((N+M)%24)

Solution (Python):
print(eval(input().replace(*' +'))%24)

Solution (Python):
print(eval(input().replace(*' +'))%24)

Solution (Python):
a, b = map(int, input().split())

ans = a+b
if ans < 24:
  print(ans)
else:
  print(ans - 24)

Solution (Python):
A,B = map(int,input().split())


print((A+B)%24)

Solution (Python):
a , b = map(int,input().split())
print(( a + b ) % 24)

Solution (Python):
a,b = map(int,input().split())
print((a+b)%24)

Solution (Python):
from fractions import gcd
from collections import Counter, deque, defaultdict
from heapq import heappush, heappop, heappushpop, heapify, heapreplace, merge
from bisect import bisect_left, bisect_right, bisect, insort_left, insort_right, insort
from itertools import accumulate, product, permutations, combinations

def main():
    A, B = map(int, input().split())

    print(A + B) if A + B < 24 else print((A + B) % 24)

if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())
if a+b < 24:
	print(a+b)
else:
	print(a+b-24)

Solution (Python):
a,b=map(int,input().split())

print((a+b)%24)

Solution (Python):
A, B = map(int,input().split())

st12 = A + B

if (st12 < 24):
    print(st12)

elif (st12 >= 24):
    st0 = st12 - 24
    print(st0)

Solution (Python):


a, b = map(int, input().split())

print(int((a + b) % 24))

Solution (Python):
def actual(A, B):
    return (A + B) % 24

A, B = map(int, input().split())
print(actual(A, B))

Solution (Python):
def main():
    A, B = map(int, input().split())
    if A + B >= 24:
        print(A+B-24)
    else:
        print(A+B)
main()

Solution (Python):
a,b = map(int,input().split())
print (a+b) if a+b < 24 else print (a+b-24)

Solution (Python):
A, B = map(int, input().split())
print((A+B) % 24)

Solution (Python):
import sys
A,B = map(int,input().split())
if A < 0 or A > 24 or B < 0 or B > 24:
    sys.exit()

start = A + B
if start > 24:
    start = start - 24
if start == 24:
    start = 0
print(start)

Solution (Python):
a,b = map(int, input().split())
print(a+b if a+b < 24 else (a+b)%24)

Solution (Python):
A,B = map(int,input().split())
ans = (A+B)%24

print(ans)

Solution (Python):
A, B = map(int,input().split())



start = A + B
if start > 23:
    print(start - 24)
else:
    print(start)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

A, B = mapint()
print((A+B)%24)

Solution (Python):
a,b=map(int,input().split())
print((a+b)%24)

Solution (Python):
A, B = map(int, input().split(' '))

print((A + B) % 24)

Solution (Python):
print(sum(map(int,input().split()))%24)

Solution (Python):
A,B = map(int,input().split())
print((A+B)%24)

Solution (Python):
print(sum(list(map(int,input().split())))%24)

Solution (Python):
n=sum(list(map(int,input().split())));print(n-24 if n>=24 else n)

Solution (Python):
A, B = map(int, input().split())
print((A + B) % 24)

Solution (Python):
i = [int(s) for s in input().split()]
A = (i[0] + i[1]) // 24
if A == 0:
    print(i[0] + i[1])
else:
    print((i[0] + i[1]) - 24)

Solution (Python):
A, B = map(int, input().split())
 
print((A + B) % 24)

Solution (Python):
A, B = map(int,input().split())
print((A+B)%24)

Solution (Python):
A, B = map(int, input().split())

if A+B >=24:
    print(A+B-24)
else:
    print(A+B)

Solution (Python):
a, b = map(int, input().split())

print((a+b)%24)

Solution (Python):
a,b = map(int,input().split())
print((a+b)%24)