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

int h[3];
void trans(int a){
	h[0] = a/3600;
	h[1] = (a%3600)/60;
	h[2] = a%60;
}

void disp(){
	for(int i = 0;i < 3;i++){
		if(i)cout << ":";
		if(h[i] < 10)cout << "0";
		cout << h[i];
	}
	cout << endl;
}

int main(){
	while(cin >> h[0] >> h[1] >> h[2]){
		if(h[0] == -1)break;
		int a = 7200 - (h[0]*3600 + h[1]*60 + h[2]);
		trans(a);
		disp();
		trans(3*a);
		disp();
	}
	
	return 0;
}