#include<bits/stdc++.h>
using namespace std;
double s,v;
int HH,MM;
int main(){
cin>>s>>v;
HH=7;
MM=50;
int f=ceil(s/v*1.0);
MM-=f;
if(MM<0){
HH-=ceil((0-MM)/60*1.0);
MM=MM%60;
}
if(HH<0){
HH=24+HH;
}
cout<<setw(2)<<setfill('0')<<HH<<':'<<setw(2)<<MM;
return 0;
}
好尴尬