#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
const int CLK_TCK = 100;
int c1, c2;
int main()
{
scanf("%d%d", &c1, &c2);
int t = round((c2 - c1)*1.0 / CLK_TCK);
printf("%02d:%02d:%02d", t / 3600, t % 3600 / 60, t % 60);
return 0;
}