#include<iostream> #include<cmath> using namespace std; int main(){ int s,v,t,h,m; cin>>s>>v; t=ceil(s/v); t=t+10; t=480-t; h=floor(t/60); m=t-60*h; if (h<10){ cout<<"0"<<h<<":"<<m; } else if (h>10){ cout<<h<<":"<<m; } return 0; }