#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>

#define MINUTES 60
#define HOUR    3600

using namespace std;

int main() {
	int h, m, s;
	while (cin >> h >> m >> s) {
		if (h == -1 && m == -1 && s == -1)
			break;
		int t = 2 * HOUR - (h * HOUR + m * MINUTES + s);
		printf("%02d:%02d:%02d\n", t / HOUR, (t % HOUR) / MINUTES, (t % HOUR) % MINUTES);
		t *= 3;
		printf("%02d:%02d:%02d\n", t / HOUR, (t % HOUR) / MINUTES, (t % HOUR) % MINUTES);
	}
	return 0;
}