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.



Sample input:
9 12


Sample output:
21

Submission status: Accepted

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

ans = (A+B)%24
print(ans)

Submission status: Accepted

Solution code:
print sum(map(int,raw_input().split()))%24

Submission status: Accepted

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

Submission status: Accepted

Solution code:
AB = list(map(int, input().split()))

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

Submission status: Accepted

Solution code:
a=map(int,input().split());print(sum(a)%24)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


ans = (N+M) % 24

print(ans)

Submission status: Accepted

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

ans = (N+M) % 24

print(ans)

Submission status: Accepted

Solution code:
N , M = map(int,input().split())
if N + M >= 24:
  print( N + M - 24)
else:
  print(N+M)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
c = a+b
while(c > 23):
    c -= 24
print(c)

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

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

sum = A + B
if sum >= 24:
  sum -=24
  
print sum

Submission status: Accepted

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

Submission status: Accepted

Solution code:
""" AtCoder """

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = [int(_) for _ in input().split()]

print((A + B) % 24)

Submission status: Accepted

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

print((a + b) % 24)

Submission status: Accepted

Solution code:
a,b = (int(i) for i in input().split())

print((a+b)%24)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B = [int(i) for i in input().split()]
print((A+B) % 24)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = sum([int(x) for x in input().split()])
print(s if s < 24 else s - 24)

Submission status: Accepted

Solution code:
int_a, int_b = map(int, input().split())

print(int_a + int_b if int_a + int_b < 24 else int_a + int_b - 24)

Submission status: Accepted

Solution code:

A,B = map(int,input().split())
D = A+B
if D > 23:
  D -= 24
print(D)

Submission status: Accepted

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

Submission status: Accepted

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


abc057_a()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = (int(x) for x in input().split())
if A + B >= 24:
    print(A + B - 24)
else:
    print(A + B)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = [ int(i) for i in input().split() ]
print((A+B)%24)

Submission status: Accepted

Solution code:


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

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

    print(a + b)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from statistics import mean, median,variance,stdev
import sys
import math

x = input().split()
#y = input().split()
a = []
for i in range(len(x)):
   a.append(int(x[i]))

print((a[0]+a[1])%24)

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
A,B = map(int,input().split())
S = A+B
if S < 24:
  print(A+B)
else:
  print(A+B-24)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
c=a+b
print([c-24,c][c<24])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = [int(_) for _ in input().split()]
print((A+B) % 24)

Submission status: Accepted

Solution code:
a = sum([int(x) for x in input().split()])
print(a) if a < 24 else print(a-24)

Submission status: Accepted

Solution code:
n=eval(input().replace(' ','+'))
print([n-24,n][n<24])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-


"""
https://beta.atcoder.jp/contests/abc057/tasks/abc57_1
"""

import sys
import math
from inspect import currentframe

def debug(*args):
    names = {id(v):k for k,v in currentframe().f_back.f_locals.items()}
    print(', '.join(names.get(id(arg),'???')+' = '+repr(arg) for arg in args), file=sys.stderr)

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = list(map(int, input().rstrip().split()))

h = (A + B) % 24
print(h)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input().strip().split(" ")

b=[int(i) for i in a]

c=b[0]+b[1]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
t = a+b
if (t>=0)and(t<=23):
    print(t)
else:
    while t > 23:
        t -= 24
    print(t)

Submission status: Accepted

Solution code:
a = input().split(" ")
if int(a[0]) + int(a[1]) >= 24:
  print(int(a[0]) + int(a[1]) - 24)
else:
  print(int(a[0]) + int(a[1]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
a,b = map(int, input().split())
print((a+b)%24)

Submission status: Accepted

Solution code:
a, b = (int(i) for i in input().split())

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

elif int(a + b) == 24:
    print(0)

else:
    print(int(a + b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
r = eval(input().replace(" ", "+"))
print([r, r - 24][r >= 24])

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding: utf-8
print(sum(int(x) for x in input().split()) % 24)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x,y = map(int,input().split())

if x + y <= 23:
    print(x+y)
else:
    print(x+y-24)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = int((a + b) % 24)

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

c = (a + b)%24
print(c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
print([a+b-24,a+b][a+b<24])

Submission status: Accepted

Solution code:
a,b = (int(_) for _ in input().split())
print((a+b)%24)

Submission status: Accepted

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

if A+B <= 23:
    print(A+B)

else:
    print(A+B-24)

Submission status: Accepted

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

remTime = (a+b) % 24

print(remTime)

Submission status: Accepted

Solution code:
print sum(map(int, raw_input().split())) % 24

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print(a+b-24*((a+b)//24))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-

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

    print((a + b) % 24)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = [int(m) for m in input().split()]
print(a+b if a+b < 24 else a+b -24)

Submission status: Accepted

Solution code:
from collections import defaultdict
import sys,heapq,bisect,math,itertools,string
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7

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

Submission status: Accepted

Solution code:
#coding:utf-8
n=[int(i) for i in input().split()]
n[0]+=n[1]
if(n[0]<24):
  print(n[0])
else:
  while(n[0]>=24):
    n[0]-=24
  print(n[0])

Submission status: Accepted

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

contest_time =  (A + B) % 24
print(contest_time)

Submission status: Accepted

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

print((a+b)%24)

Submission status: Accepted

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

print((A+B) % 24)

Submission status: Accepted

Solution code:
print sum([int(x) for x in raw_input().split()]) % 24

Submission status: Accepted

Solution code:
from sys import stdin


def main():
    A, B = [int(x) for x in stdin.readline().rstrip().split()]
    result = A + B
    if 24 <= result:
        result -= 24
    print(result)


if __name__ == '__main__':
    main()

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

ans = (A + B) % 24

print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

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

print((a + b)%24)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

print((A + B) % 24)

Submission status: Accepted

Solution code:
num=input().split(" ")
a=int(num[0])
b=int(num[1])
if a+b>=24:
	print(a+b-24)
else:
	print(a+b)

Submission status: Accepted

Solution code:
poop=input().split()
print((int(poop[0])+int(poop[1]))%24)

Submission status: Accepted

Solution code:
x=input().split()
ans=int(x[0])+int(x[1])
print(int(ans%24))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
[a,b]=[int(i) for i in input().split()]
if a+b>=24:
    print(a+b-24)
else:
    print(a+b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=[int(i) for i in input().split()]
print((A+B)%24)

Submission status: Accepted

Solution code:
A,B = [int(i) for i in input().split()]
if A + B < 24 :
  print(A + B)
elif A + B ==24 :
  print("0")
else :
  print(A + B - 24)

Submission status: Accepted

Solution code:
A,B=[int(i) for i in input().split()]
if A+B<=23:
    print(A+B)
else:
    print(A+B-24)

Submission status: Accepted

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

if a + b >= 24:
    print('{}'.format(a+b-24))
else:
    print('{}'.format(a+b))

Submission status: Accepted

Solution code:
#６月５日
a, b = map(int, input().split())
c =(a+b)%24
print(c)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

print((a + b) % 24)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
lines = input().split(' ')
A = int(lines[0])
B = int(lines[1])

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

Submission status: Accepted

Solution code:
lines = str(input()).split(' ')
A = int(lines[0])
B = int(lines[1])

now = A + B

while now >= 24:
	now -= 24

print(now)

Submission status: Accepted

Solution code:
a, b = list(map(lambda x: int(x), input().split(" ")))

print((a+b)%24)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ina,inb = map(int,input().split())
if ina + inb >=24:
  print(ina+inb-24)
else:
  print(ina+inb)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
c = a + b

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

# AtCoder Beginner Contest
# Problem A

if __name__ == '__main__':
    current_hour, add_hour = list(map(int, input().split()))
    contest_hour = current_hour + add_hour

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

Submission status: Accepted

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

Submission status: Accepted

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

print((a + b) % 24 )

Submission status: Accepted

Solution code:
A, B = [int(s) for s in input().split()]
ret = (A + B) % 24
print(ret)

Submission status: Accepted

Solution code:
#__author__ = "tatuo"
#__date__ = "$Mar 3, 2018 12:34:20 PM$"

import math
import re
import sys


def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result




arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])

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


#print(n*800 - n//15*200)

#x = "ABC" if n <1200 else "ARC"
#
#print(x)

#s1 = arr_data[0][0][0]
#s2 = arr_data[1][0][1]
#s3 = arr_data[2][0][2]
#
#print(s1+s2+s3)
#

Submission status: Accepted

Solution code:
import sys

stdin = sys.stdin
ni = lambda: int(stdin.readline())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

t = na()
if t[0]+t[1] >= 24:
    print(t[0]+t[1]-24)
else:
    print(t[0]+t[1])

Submission status: Accepted

Solution code:
su = sum(map(int, input().split()))
print(su - 24 if su > 23 else su)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
https://beta.atcoder.jp/contests/abc057/tasks/abc057_a

"""
import sys
from sys import stdin
input = stdin.readline


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


def main(args):
    A, B = map(int, input().split())
    ans = solve(A, B)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B = [int(i) for i in input().split()]
print((A+B)%24)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

    ans = (A + B) % 24
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
a, b = map(int, sys.stdin.readline().split())

print((a+b)%24)

Submission status: Accepted

Solution code:
n = input().split()
m = list(map(int, n))
i = m[0] + m[1]
if 24 <= i:
  print(i - 24)
else:
  print(i)

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

C = A + B

if C <= 23:
	print(C)
if C >= 24:
	print(C % 24)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
num = [int(x) for x in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ls = list(map(int, input().split()))

hour = ls[0] + ls[1]

print(hour % 24)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = [int(n) for n in input().split()]

print((A+B)%24)

Submission status: Accepted

Solution code:
a, b = map(int, raw_input().split())

print (a + b) % 24

Submission status: Accepted

Solution code:
a, b = [int(i) for i in input().split()]
ans = a + b
if ans >= 24:
    ans = ans - 24
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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


print((A + B) % 24)

Submission status: Accepted

Solution code:
def read_int_list():
    return list(int(i) for i in input().split())
    
x,y = read_int_list()
print((x+y)%24)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
def inint(): return int(input())
def inlint(): return list(map(int, input().split()))
def infloat(): return float(input())
def inlffloat(): return list(map(float, input().split()))
def inl(): return list(input())
def putlint(): return "".join(list(map(str, ans)))

a,b = inlint()

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

print(a)

Submission status: Accepted

Solution code:
#Remaining Time
A,B = list(map(int, input().split()))
print((A+B)%24)

Submission status: Accepted

Solution code:
input_line1 = map(int,raw_input().split(" "))
#input_line2 = map(int,raw_input().split(" "))
#input_line = raw_input().split(" ")
a = input_line1[0]
b = input_line1[1]

n = a + b
if n >= 24:
	print n - 24
else:
	print n

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
import re
import math
import collections
import itertools
import functools

DEBUG = True
DEBUG = False

def dbg(*args):
    if DEBUG:
        print("DBG: ", file=sys.stderr, end="")
        print(*args, file=sys.stderr)



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

    print((A+B)%24)

if __name__ == "__main__": main()

Submission status: Accepted

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

sta = A + B
if (sta >= 24):
    sta = sta - 24

print(sta)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

else:
    print(A+B)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def ri(): return int(input())
def rli(): return list(map(int, input().split()))
def ris(): return list(input())
def pli(a): return "".join(list(map(str, a)))
 
a,b = rli()
print((a+b)%24)

Submission status: Accepted

Solution code:
A, B = list(map(int, input().split(" ")))

add = A + B
if add > 23:
    add -= 24

print(add)

Submission status: Accepted

Solution code:
from collections import defaultdict


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B = [int(i) for i in input().split()]
C = A+B
if C >= 24:
    C = C-24
print(C)

Submission status: Accepted

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