#include <iostream>
#include <iomanip>
using namespace std;
int HmsToS(int h, int m, int s) {
return h * 3600 + m * 60 + s;
}
void PrintTime(int s) {
int hours = s / 3600;
s %= 3600;
int minutes = s / 60;
int seconds = s % 60;
cout << setw(2) << setfill('0') << hours << ":"
<< setw(2) << setfill('0') << minutes << ":"
<< setw(2) << setfill('0') << seconds << endl;
}
int main() {
string time1, time2;
int h1, m1, s1, h2, m2, s2;
while (cin >> time1 >> time2) {
// 解析时间点1
h1 = stoi(time1.substr(0, 2));
m1 = stoi(time1.substr(3, 2));
s1 = stoi(time1.substr(6, 2));
// 解析时间点2
h2 = stoi(time2.substr(0, 2));
m2 = stoi(time2.substr(3, 2));
s2 = stoi(time2.substr(6, 2));
// 计算时间差
int totalSeconds1 = HmsToS(h1, m1, s1);
int totalSeconds2 = HmsToS(h2, m2, s2);
int diffSeconds = totalSeconds2 - totalSeconds1;
PrintTime(diffSeconds);
}
return 0;
}