2025-05-12 22:17:12 +09:00

3 lines
79 B
Python

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