#include <iostream>
#include <cstdio>
using namespace std;

int main(){
    int h, m, s;
    while (1){
	cin >> h >> m >> s;
	if (h == -1 && m == -1 && s == -1) break;

	int rest = 3600*2;
	int rest2 = 3600*2;
	rest = rest - (h * 3600 + m * 60 + s);
	rest2 = rest * 3;

	printf("%02d:%02d:%02d\n", rest / 3600, (rest % 3600) / 60, rest % 60);
	printf("%02d:%02d:%02d\n", rest2 / 3600, (rest2 % 3600) / 60, rest2 % 60);
    }
}