Files
PS/boj/2525.py
Gyubin Han 2600340c03 first commit
from old repository to a new repository
2024-04-30 16:59:10 +09:00

12 lines
138 B
Python

h,m=map(int,input().split())
w=int(input())
m+=w
if m>=60:
wh=int(m/60)
h+=wh
if h>23:
h-=24
m-=wh*60
print(h,m)