Dailyk @ 2023-11-27 11:33:26
#include<iostream>
using namespace std;
int main(){
int s,v;
int time=0;
cin>>s>>v;
if(s%v!=0) {time=s/v+10+1;}
else if(s%v==0) {time=s/v+10;}
int i=0;
if(time%60==0) i=time/60;
else i=time/60+1;
if(i<=8){
if(time%60!=0) printf("%i%i:%i\n",0,(8-i),60-time%60);
else printf("%i%i:%i%i\n",0,8-i,0,0);
}
else if(i>8){
if(time%60!=0) printf("%i:%i\n",24-(i-8),60-time%60);
else printf("%i:%i%i\n",24-(i-8),0,0);
}
return 0;
}