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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

T = a + b
if T > 24:
  T = T % 24

print(T)

Submission status: Wrong Answer

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

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

print(T)

Submission status: Wrong Answer

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

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

print(T)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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


print(A + (B % 24))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

time = A+B

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(A + B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N,M = map(int,raw_input().split())
ans = N + M

if ans > 24:
        ans -= 24

print ans

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-S
A,B = [int(i) for i in input().split()]

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

#print(A,B)
C=A+B
if C < 25:
  print(C)
elif C >=24:
  print(C-24)

Submission status: Wrong Answer

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

#print(A,B)
C=A+B
if C < 25:
  print(C)
elif C >=25:
  print(C-24)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a + b <= 24:
  t = a + b
else:
  t = a + b - 24

print(t)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(A+B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


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

    if a + b == 24:
        print(0)
        return
    
    if a + b >= 24:
        print(int((a + b) / 24))
        return
    else:
        print(a+b)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:

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

    if a + b >= 24:
        print(int( (a + b) / 24))
        return
    else:
        print(a+b)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

else:
    print(int(a + b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

else:
  print(a+b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

else:
    print(A+B-24)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = input().split()
if a == "H":
    print(b)
else:
    if b == "H":
        print("D")
    else:
        print("H")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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>24:
    a=a-24

print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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: Wrong Answer

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: Wrong Answer

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

print(a+b%24)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

todo = A + B

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

Submission status: Wrong Answer

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

todo = a + b

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = input()
b = a.split()
print(int(b[0]) + int(b[1]))

Submission status: Wrong Answer

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

if __name__ == "__main__":
    solve()

Submission status: Wrong Answer

Solution code:
t = input().split(" ")
ans = int(t[0]) + int(t[1])
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import sys

for line in sys.stdin.readlines():
    a = line.strip().split(" ")
    a1 = int(a[0])
    a2 = int(a[1])
    print(a1+a2 % 24)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
l = input().split()
A = l[0]
B = l[1]
C = int(A) + int(B)
time = C % 24
if (time == 0):
    time = 24

print(time)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
data = list(map(int,input().split(" ")))
x = sum(data)
if x > 24:
	print(x%24)
else:
	print(x)

Submission status: Wrong Answer

Solution code:
input_str = input()
input = input_str.split(' ')
output = int(input[0]) +int(input[1])
if output > 24:
    output -= 24
print(output)

Submission status: Wrong Answer

Solution code:
import sys
a = sys.stdin.readline()
a,b = a.strip().split(" ")
print((int(a)-int(b))/24)

Submission status: Wrong Answer

Solution code:
def R_T(a,b):
    time_ = a+b
    if time_>24:
        return time_-24
    else:
        return time_

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
A, B = map(int, input().split())
print("%d" % (A+B%24))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
AB =input()
if len(AB) <= 2:
    ABL = [AB]
else:
    ABL= AB.replace("\n", " ").split(" ")


A = int(ABL[0])
if len(ABL) <= 2:
    C = A
else:
    B = ABL[1]
    C = int(A) + int(B )
if C >= 24:
    C -= 24
print(C)

Submission status: Wrong Answer

Solution code:
AB =input()
if len(AB) <= 2:
    ABL = [AB]
else:
    ABL= AB.replace("\n", " ").split(" ")

print(ABL)
A = int(ABL[0])
if len(ABL) <= 2:
    C = A
else:
    B = ABL[1]
    C = int(A) + int(B )
if C >= 24:
    C -= 24
print(C)

Submission status: Wrong Answer

Solution code:
AB = input()
ABL= AB.replace("\n", " ").split(" ")

print(ABL)
A = ABL[0]
if len(ABL) == 1:
    C = A
B = ABL[1]
C = int(A) + int(B )
if C >= 24:
    C -= 24
print(C)

Submission status: Wrong Answer

Solution code:
data  = input().split( )
sum = int(data[0]) + int(data[1])
 
if(sum > 24):
    sum = sum % 24
 
print(sum)

Submission status: Wrong Answer

Solution code:
data  = input().split( )
sum = int(data[0]) + int(data[1])

if(sum > 24):
    sum = sum -24

print(sum)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

time=(l[0]+l[1])%24

if(l[0]==0 and l[1]==0):
  print "0"
elif(time==0):
  print "24"
else:
  print time

Submission status: Wrong Answer

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


def main():
    a, b = [int(e) for e in input().split()]
    answer = (a + b) % 23
    return answer


print(main())

Submission status: Wrong Answer

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

time=(l[0]+l[1])%24

if(time==0):
  print "24"
else:
  print time

Submission status: Wrong Answer

Solution code:
N, S = list(map(int, input().split()))
s = N + S
if s > 24:
    s = s - 24
print(str(s))

Submission status: Wrong Answer

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

A = ab[0]
B = ab[1]

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

print(C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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