#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int c1,c2;
cin >> c1 >> c2;
int t = ((c2 - c1) + 50) / 100; //四舍五入
int h,m,s;
h = t / 3600;
t %= 3600;
m = t / 60;
t %= 60;
//cout << h << ": " << m << ": " << t;
printf("%02d:%02d:%02d",h,m,t);
return 0;
}