lzchen @ 2023-12-05 21:12:00
#include<bits/stdc++.h>
using namespace std;
int main ()
{
int s,v,t;
cin>>s>>v;
if(s%v!=0)
t=s/v+1;
else
t=s/v;
int m=8*60-t-10;
int h=m/60;
int mi=m-h*60;
if(mi<0)
{
int n=t+10-8*60;
h=24-n/60-1;
mi=60-n;
cout<<setfill('0')<<setw(2)<<h<<':'<<setw(2)<<mi<<endl;
}
else
cout<<setfill('0')<<setw(2)<<h<<':'<<setw(2)<<mi<<endl;
}