4 lines
88 B
Python
4 lines
88 B
Python
h, m = map(int, input().split())
|
|
d = int(input())
|
|
t = h*60 + m + d
|
|
print(t//60%24, t%60) |