#include<bits/stdc++.h> using namespace std; int s,v,i; int main() { cin>>s>>v; int t=32*60-10-(s+v-1)/v; int h=t/60%24,m=t%60; cout<<h/10<<h%10<<":"<<m/10<<h%10; return 0; }
QWQQWQQWQ