8 lines
103 B
Python
8 lines
103 B
Python
h, m = map(int, input().split())
|
|
|
|
if m < 45:
|
|
h = (h - 1) % 24
|
|
m = (m - 45) % 60
|
|
|
|
print(f"{h} {m}")
|