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

11 lines
117 B
Python

h,m=map(int,input().split())
if m-45<0:
h-=1
if h<0:
h+=24
m+=-45+60
else:
m-=45
print(h,m)