#include<bits/stdc++.h>
using namespace std;
int main(){
int S,V,t,ha,hb,ma,mb,H,M;
scanf("%d%d",&S,&V);
if(S%V==0){
t=S/V;
t+=9;
}
else{
t=S/V;
}
H=7;
M=59;
if(t!=0){
if(M!=0){
M--;
}
else{
if(H!=0){
H--;
M=59;
}
else{
H=23;
M=59;
}
}
t--;
}
ha=H/10;
hb=H-(10*(H/10));
ma=M/10;
mb=M-(10*(M/10));
printf("%d%d:%d%d",ha,hb,ma,mb);
return 0;
}
请帅哥美女指点