#include<stdio.h>
int main()
{
int a,b,c1,c2,A,B,C;
scanf("%d %d",&a,&b);
A=(a/100)*60+(a-(a/100)*100);
B=(b/100)*60+(b-(b/100)*100);
C=B-A;
c1=C/60;
c2=C-(C/60)*60;
printf("%02d:%02d",c1,c2);
return 0;
}
#include<stdio.h>
int main()
{
int a,b,c1,c2,A,B,C;
scanf("%d %d",&a,&b);
A=(a/100)*60+(a-(a/100)*100);
B=(b/100)*60+(b-(b/100)*100);
C=B-A;
c1=C/60;
c2=C-(C/60)*60;
printf("%02d:%02d",c1,c2);
return 0;
}