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:
import math

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

a, b = map(int, sys.stdin.readline().split())

def main():
    ans = (a + b) % 24
    return ans

if __name__ == '__main__':
    ans = main()
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()
a=a.split(" ")
b=int(a[1])
a=int(a[0])
a=a+b
if a-24>=0:
  print(a-24)
else:
  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 ) % 24 )

Submission status: Accepted

Solution code:
x, y = [int(i) for i in input().split()]
print((x+y)%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, open(0).read().split())
if (a+b) <24:
  print(a+b)
else:
  print((a+b)%24)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

time = (A + B) % 24

print(time)

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 < 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:
from sys import stdin

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

print((a+b)%24)

Submission status: Accepted

Solution code:
# ABC057a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
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=list(map(int,input().split(" ")))

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

Submission status: Accepted

Solution code:
#ABC57A
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:
# -*- coding: utf-8 -*-
import math

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

Submission status: Accepted

Solution code:
#ABC057 A - Remaining Time
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
a,b = map(int, input().split())
print((a+b)%24)

Submission status: Accepted

Solution code:
# python3 (3.4.3)
import sys
input = sys.stdin.readline

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

print((A+B)%24)

Submission status: Accepted

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

Submission status: Accepted

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


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

examA()

Submission status: Accepted

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

if A > 23:
    A -= 24

print(A)

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

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:
#Remaining Time
A, B = map(int,input().split())
begin = A + B
if begin >= 24:
    begin = begin - 24
print(begin)

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

Submission status: Accepted

Solution code:
# A - Remaining Time
a, b = [int(s) for s in input().split()]
print((a + b) % 24)

Submission status: Accepted

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

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:
f=lambda x:(x[0]+x[1])%24
print(f(list(map(int,input().split()))))

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = (a + b) % 24

print(ans)

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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


if __name__ == '__main__':
    slove()

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

input = sys.stdin.readline


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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = None

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

Submission status: Accepted

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

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

time = A+B

if time<24:
  print(time)
else:
  print(time-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)
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:
#ABC057A
A, B = list(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

    print((A+B)%24)


if __name__ == "__main__":
    main()

Submission status: Accepted

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

print((a+b)%24)

Submission status: Accepted

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
   
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)-24)
else :
    print(A+B)

Submission status: Accepted

Solution code:
#A時ちょうどで、
#コンテストがちょうどB時間後に始まる。

#コンテスト開始時間は24時間表記で何時ちょうどでしょうか？

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Sum = sum(map(int,input().split()))
print(Sum if Sum<24 else Sum-24)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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: Accepted

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

Submission status: Accepted

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

a, b = na()
print((a + b) % 24)

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)

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

Submission status: Accepted

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

ans = (A + B) % 24

print(ans)

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

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:
def main():
    A, B = map(int, input().split())
    return (A+B) % 24

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
    print("0")
elif c >24:
    print(c-24)
else:
    print(c)

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(abs(a + b) % 24)

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
INF = float("inf")


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


def main():

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    solve(A, B)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def main():
    a,b = map(int,input().split())
    ans=a+b
    if(ans>=24):
        ans-=24
    print(ans)
        
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=map(int,input().split())
Ans = A+B
if Ans >=24:
  Ans -= 24

print(Ans)

Submission status: Accepted

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

print((a+b)%24)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 
# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    A,B = inputMap()
    
    tmp = A+B
    print(tmp % 24)
    
    
if __name__ == "__main__":
	main()

Submission status: Accepted

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

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

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

Submission status: Accepted

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

if ans >= 24:
        ans -= 24

print ans

Submission status: Accepted

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

Submission status: Accepted

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

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())
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:
#57

A, B = map(int, input().rstrip().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>23:
    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 = 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:
# -*- 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: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


main()

Submission status: Accepted

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

tmp = int(num[0])+int(num[1])
print(tmp) if tmp<24 else print(tmp-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()]
print((A+B)%24)

Submission status: Accepted

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

ans = a + b

if ans>23:
    print(ans-24)
else:
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#n = int(input())
#a = int(input())
#ls = list(input().split(" "))
#ls = list(map(int,input().split(" ")))
a,b = list(map(int,input().split(" ")))
#a,b,c = list(input().split())
#string = input()

print((a+b)%24)

Submission status: Accepted

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

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 < 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 gcd(a, b):
    while b:
        a, b = b, a % b
    return a

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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)
if a+b >= 24:
    print(a+b-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:
import sys, re, os
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
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

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,input().split())
hora=a
i=1
if b==0:
  print(a)
else:
    
  while True:
    b-=1
    hora+=i
    if hora==24:
      hora=0
    if b==0:
      print(hora)
      break

Submission status: Accepted

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