import std.stdio;
import std.algorithm;
import std.string;
import std.array;
import std.conv;
import std.math;

void main(){

    while(true){
	auto s1 = split(readln()).to!(int[]);
	if(s1[0]==-1&&s1[1]==-1&&s1[2]==-1) break;
	int h,m,s;
	int time = s1[0] * 3600 + s1[1] * 60 + s1[2];
	time = 7200 - time;
	h = time / 3600;
	time %= 3600;
	m = time / 60;
	time %= 60;
	s = time;
	writef("%02d:%02d:%02d\n",h,m,s); 
	time = s1[0] * 3600 + s1[1] * 60 + s1[2];
	time = 7200 - time;
	time *= 3;
	h = time / 3600;
	time %= 3600;
	m = time / 60;
	time %= 60;
	s = time;
	writef("%02d:%02d:%02d\n",h,m,s); 

    }

}