// #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <locale>
#include <cctype>
#include <sstream>
using namespace std;

void Output(int ansSec){
	int hour = 0, min = 0, sec = 0;
	hour = ansSec / (60*60);
	ansSec = ansSec % (60*60);
	min = ansSec / 60;
	ansSec = ansSec % 60;
	sec = ansSec;

	printf("%02d:%02d:%02d\n", hour, min, sec);
}

int main(){
	int hour, min, sec;
	char colon;
	while (cin >> hour >> min >> sec, hour != -1 && min != -1 && sec != -1){
		int inSec = (hour * 60 + min) * 60 + sec;
		int ansSec = (120 * 60) - inSec;
		int ansSecx3 = ansSec * 3;

		Output(ansSec);
		Output(ansSecx3);
	}
	return 0;
}