#include<iostream>
#include<vector>
using namespace std;
int main() {
	vector<int>l;
	int a;
	int x, y, z;
	while (cin >> x >> y >> z) {
		if (x == -1 && y == -1 && z == -1)break;
		l.push_back(120 * 60 - z - y * 60 - x * 60 * 60);
	}
	for (int i : l) {
		a = i;
		int x, y, z;
		z = a % 60;
		a -= z;
		a /= 60;
		y = a % 60;
		a -= y;
		x = a / 60;
		cout << '0' << x << ':';
		if (y >= 10)cout << y << ':';
		else cout << '0' << y << ':';
		if (z >= 10)cout << z << endl;
		else cout << '0' << z << endl;
		a = i * 3;
		z = a % 60;
		a -= z;
		a /= 60;
		y = a % 60;
		a -= y;
		x = a / 60;
		cout << '0' << x << ':';
		if (y >= 10)cout << y << ':';
		else cout << '0' << y << ':';
		if (z >= 10)cout << z << endl;
		else cout << '0' << z << endl;
	}
	char c;
	cin >> c;
}