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())
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-1)%24 +1)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A+B>24:
  print(A+B-24)
elif A+B<=24:
  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)-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())

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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



if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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



if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# A - Remaining Time
# https://atcoder.jp/contests/abc057/tasks/abc057_a

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

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

print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(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 <= 23:
    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,a+b-24][a+b>24])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# 現在の時刻aと何時間後にコンテストが始めるかbを整数で入力
a,b = map(int,input().split())
# a+bが24より大きければ-24して表示
start_time = a + b
if start_time >24:
    print(start_time - 24)
# a+bが24より小さければそのまま表示
else:
    print(start_time)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
# coding = SJIS

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=(int(x) for x in input().split())
c = a + b
d = c - 24

if int(d) > 0:
    print( d )
else:
    print( c )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

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

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

if __name__ == '__main__':
    main()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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(max(a+b,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())
if a + b == 0:
    print(24)
elif 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:
import itertools,collections
def main():
    a,b=map(int, input().split())
    if(a+b>=23):
        print(abs(24-(a+b)))
    else:
        print(a+b)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def gcd(A,B):
	print(A,B)
	if B==0:
		return A
	elif B!=0:
		return gcd(B,A%B)
#ただし、A>Bである
a,b=map(int,input().split())
a=gcd(a,b)
print(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:
print(eval(input().replace(' ','+')))

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

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

Submission status: Wrong Answer

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

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

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

if __name__ == '__main__':
    main()

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

Submission status: Wrong Answer

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

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

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:
n=sum(list(map(int,input().split())));print(n-24 if n>=4 else n)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

C = A + B

if C > 24:
    print(C - 24)
else:
    print(C)

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)

Submission status: Wrong Answer

Solution code:
s = list(map(int, input().split()))
n=s[0]
k=s[1]
print((n+k))

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
_input = input().split(" ")
_A = int(_input[0])
_B = int(_input[1])

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

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
import sys
import math
import bisect

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

if Ans <= 24:
    print(Ans)
else:
    print(Ans-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(0)
else:
    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:
x, y = map(int,input().split())
z = x+y
print(z) if z < 25 else print(z-24)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if (a>b):
    s=a+b
    s=s%24
if (b>=a):
    s=a-b
if (s<=0):
    s=s*-1

print(s)

Submission status: Wrong Answer

Solution code:
a, b=input().split(" ")
a=float(a)
b=float(b)
s=a-b
if( s> 0 and s<=24 ):
    t=b-a
if(s <=0 ):
    tm=s%24
    t=24+tm
    
if (s<24 ):
    tm=s%24
    t=24-tm
print('%d'%t)

Submission status: Wrong Answer

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

if result > 24:
    
    print(result-24)
else:
    print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
a, b = [int(x) for x in 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())
T = A+B
if (T <= 24):
    print(T)
else:
    print(T-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()]

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

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

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:
# https://atcoder.jp/contests/abc057/tasks/abc057_a

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

start = A + B

if start >= 24:
    start -= start - 24

print(start)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = [int(i) for i in input().split()]
    print(a[0]+a[1] %24)

Submission status: Wrong Answer

Solution code:
A, B = map(int, raw_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, raw_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=map(int,input().split())

print((A+B)//24)

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 = [int(i) for i in input().split()]
tmp = a + b
if tmp >= 24:
  print(tmp // 24)
else:
  print(tmp)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
a, b = map(int,input().split())

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

Submission status: Wrong Answer

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

ans = A + B

if A + B > 24:
    ans -= 24

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i in range(100000):
  if ans > 24:
    ans -= 24
  elif ans <= 24:
    break
    
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((a+b)-24)
elif b == 0: 
  print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
print(A+B -24*(A+B//24) if A+B > 24 else A+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:
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: 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 = list(map(int,input().split()))
if a[0] + a[1] > 24:
  print(a[0] + a[1] -24)
else:
  print(a[0] + a[1])

Submission status: Wrong Answer

Solution code:
x,y = map(int,input().split())
if (x+y)<=23:
    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 = [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())
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)
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())
if A + B <= 23:
  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(24 - A + B)

Submission status: Wrong Answer

Solution code:
def coder(a,b):
    if a + b < 24:
        return a + b
    else:
        return a + b % 24

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

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
from bisect import bisect

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B = MAP()

print(range(1, 25)[(A+B-1)%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())

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

Submission status: Wrong Answer

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

print((n+m%24))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

print(a % 24 + b)

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
time = input().split()

time_i = [int(s) for s in time]

t = time_i[0] + time_i[1]

if(t <= 24):
    print(t)
else:
    print(t-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:
x, y= list(map(int, input().split()))
#a,b,c = list(input().split())
if x+y <= 24:
    print(x+y)
else:
    print(x+y-24)

Submission status: Wrong Answer

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

print(a+b%24)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

res = (a+b)%24

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#ABC57A
a, b = map(int, input().split())
print(max(a+b,a+b-24))

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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