#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
	int h, m, s;
	while (cin >> h >> m >> s) {
		if ((h&m&s) == -1) break;
		int sum = h * 3600 + m * 60 + s;
		int ans1 = 7200 - sum;
		int ans2 = 7200 * 3 - sum * 3;
		printf("%02d:%02d:%02d\n", ans1 / 3600, ans1 % 3600 / 60, ans1 % 60);
		printf("%02d:%02d:%02d\n", ans2 / 3600, ans2 % 3600 / 60, ans2 % 60);
	}
	return 0;
}