program sadacha15; {$APPTYPE CONSOLE} var t,k,n,s:integer; begin readln (t,k); n:=t*k div 60; s:=t*k mod 60; writeln(n,':',s); readln; end.