notalentprogrammer 392adc667e 20250510 beakjoon
2025-05-10 20:06:46 +09:00

4 lines
88 B
Python

h, m = map(int, input().split())
d = int(input())
t = 60*h + m + d
print(t//60%24, t%60)