import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int c1 = in.nextInt();
int c2 = in.nextInt();
in.close();
double CLK_TCK = 100.0;
int difference = (int) Math.round((c2 - c1) / CLK_TCK);
int hour = difference / 3600;
difference %= 3600;
int minute = difference / 60;
difference %= 60;
int second = difference;
System.out.printf("%02d:%02d:%02d\n",hour,minute,second);
}
}