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):
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())
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, open(0).read().split())
if (a+b) <24:
  print(a+b)
else:
  print((a+b)%24)

Solution (Python):
a,b = map(int, open(0).read().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())
print((a+b)%24)

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

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

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())

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())
print(A+B if A+B < 24 else A+B-24)

Solution (Python):
a,b=list(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())

time = (A + B) % 24

print(time)

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=[int(x) for x in input().split()]
print((a + b)%24)

Solution (Python):
from sys import stdin

a,b = [int(x) for x in stdin.readline().rstrip().split()]

print((a+b)%24)

Solution (Python):

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

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

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

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

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

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

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 if a+b >= 24 else 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)
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):
print(sum(map(int,input().split()))%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-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())
if a + b < 24:
    print(a+b)
else:
    print(a+b - 24)

Solution (Python):

import math


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 if a+b < 24 else a+b-24)

Solution (Python):

si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
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
input = sys.stdin.readline


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())
ans = (a + b) % 24
print(ans)

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

Solution (Python):
def examA():
    A, B = LI()
    ans = (A + B)%24
    print(ans)


import sys
import copy
import bisect
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

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

if A > 23:
    A -= 24

print(A)

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 if a+b < 24 else 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())
begin = A + B
if begin >= 24:
    begin = begin - 24
print(begin)

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())
 
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())
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 = [int(s) for s 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(B==0):
  print(A)
else:
  t = (A+B) % 24
  print(t)

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:
  print(A + B - 24)
else:
  print(A + B)

Solution (Python):
f=lambda x:(x[0]+x[1])%24
print(f(list(map(int,input().split()))))

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())
print((a+b)%24)

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

time=A+B
if time < 24:
  print(time)
elif time >= 24:
  print(time - 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())
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 if a+b < 24 else a+b-24)

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

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) - 24)
else:
    print(int(A)+int(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+12-12)%24)

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

Solution (Python):
a,b=map(int,input().split())
s=a+b
print(s%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 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) % 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())
print((a+b)%24)

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

ans = (a + b) % 24

print(ans)

Solution (Python):
a = list(map(int,input().split()))
A = a[0]
B = a[1]
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):
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 = tuple(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())

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 if a+b<=23 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())

print((A+B) % 24)

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

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

Solution (Python):
print(sum(map(int,input().split()))%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):
print(sum(map(int,input().split()))%24)

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

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):
def slove():
    import sys
    input = sys.stdin.readline
    a, b = list(map(int, input().rstrip('\n').split()))
    print((a + b) % 24)


if __name__ == '__main__':
    slove()

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: print(a+b)
else: print(a+b-24)

Solution (Python):
import sys

input = sys.stdin.readline


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((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)

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())
c=a+b
if c>=24:
	print(c-24)
else:
	print(c)

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())
ans = A + B
if ans >= 24:
    ans = ans - 24
else:
    pass
print(ans)

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

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

Solution (Python):
a,b=map(int,input().split())
print(a+b-(a+b>=24)*(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())
A = a+b
if A > 24:
  print(A-24)
elif A < 24:
  print(A)
elif A == 24:
  print("0")

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

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
def do():
    a,b=INTM()
    print((a+b)%24)
if __name__ == '__main__':
    do()

Solution (Python):
a, b = [int(s) for s 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):
print(eval(input().replace(" ","+"))%24)

Solution (Python):
print(sum([int(n) for n in input().split()]) % 24)

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

Solution (Python):
a,b = map(int, input().split())
ans = a+b
print(ans if ans<24 else 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):
print(sum(map(int,input().split()))%24)

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

ans = None

if A+B > 23:
  ans = A+B-24
else:
  ans = A+B
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())

if a+b <= 23:
    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())
x = a + b
if x < 24:
  print(x)
else:
  print(x-24)

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

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


if __name__ == "__main__":
    resolve()

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())

if (A+B) >= 24:
    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):
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 if A+B >= 24 else A+B)

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

Solution (Python):

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

print(divmod(A+B, 24)[1])

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

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

Solution (Python):
x=list(input().split())
a=int(x[0])
b=int(x[1])
time=a+b
if time>=24:
  time-=24
print(time)

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):
import sys
input = sys.stdin.readline

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((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):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
   
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())

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:
    print(a+b)
else:
    print(a+b-24)

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

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

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

Solution (Python):
m = list(map(int,input().split()))
print(int((m[0]+m[1])%24))

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

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

Solution (Python):
Sum = sum(map(int,input().split()))
print(Sum if Sum<24 else Sum-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):
a,b = map(int,input().split())
if (a + b) // 24 ==0:
    print(a+b)
else:
    print(a+b-24)

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

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

Solution (Python):
s = input().split()
a, b = int(s[0]), int(s[1])
if a + b >= 24:
    print(abs(24 - (a + b)))
else:
    print(a + b)

Solution (Python):
a = [int(_) for _ in input().split()];print(a[0] + a[1] - 24 if a[0] + a[1] >= 24 else a[0] + a[1])

Solution (Python):
import sys
import copy
import string
import  math
from _bisect import *
from collections import *
from operator import itemgetter
from math import factorial
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

a, b = na()
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)

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)

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

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

Solution (Python):
A,B = (int(i) for i in input().split())

ans = (A + B) % 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())
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())
a = (A+B)%24
print(a)

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

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

if __name__ == '__main__':
    print(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())
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):
print(eval(input().replace(' ','+'))%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)

Solution (Python):
def r_t(n):
    return sum(map(int, n.split()))%24
print(r_t(input()))

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-24)
else:
  print(a+b)

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

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

if a + b <= 23:
  print(int(a+b))

else:
  print(int(a + b - 24))

Solution (Python):
n,m=map(int,input().split())

print((n+m)%24)

Solution (Python):
a,b = (int(i) for i 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())

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())
if a+b >= 24:
  print((a+b)-24)
else:
  print(a+b)

Solution (Python):
N, K = map(int, input().split())
print((N+K)%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):
print(sum(list(map(int, input().split()))) % 24)

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

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

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

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

print(abs(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())
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)
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())
r = (A+B)%24
print(r)

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

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

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)%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 = C - 24
print(C)

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 = list(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:
  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 = list(map(int, input().split()))
print((a + b) % 24)

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

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

Solution (Python):

import sys
INF = float("inf")


def solve(A: int, B: int):
    print((A+B) % 24)
    return


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(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, 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):
def main():
    a,b = map(int,input().split())
    ans=a+b
    if(ans>=24):
        ans-=24
    print(ans)
        
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())

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())
Ans = A+B
if Ans >=24:
  Ans -= 24

print(Ans)

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

print((a+b)%24)

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

Solution (Python):
print(sum([int(tok) for tok in 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)

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
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 




 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    A,B = inputMap()
    
    tmp = A+B
    print(tmp % 24)
    
    
if __name__ == "__main__":
	main()

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

Solution (Python):
print(eval(input().replace(" ","+"))%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):
print(sum(map(int,input().split()))%24)

Solution (Python):
arr=map(int,input().split())
print(sum(arr)%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,M = map(int,raw_input().split())
ans = N + M

if ans >= 24:
        ans -= 24

print ans

Solution (Python):

a = list(map(int,input().split()))
print( sum(a) % 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())
print( (a+b) % 24 )

Solution (Python):
A, B = map(int, input().split())
print ((A + B) % 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())

print((A+B)%24)

Solution (Python):


A, B = map(int, input().rstrip().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>23:
    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())
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 = [int(i) for i in 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)