Files
CodeObject/zeta_python/completed/2525.py
2024-02-10 14:43:37 +09:00

8 lines
135 B
Python

h, m = map(int, input().split())
d = int(input())
m_o = (m + d) // 60
m_new = (m + d) % 60
h_new = (h + m_o) % 24
print(h_new, m_new)