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) 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("0%d:%s:%s\n",h,(m/10==0)? "0" ~ to!string(m) : to!string(m),(s/10==0)? "0" ~ to!string(s) : to!string(s));
	time = s1[0] * 3600 + s1[1] * 60 + s1[2];
	time = 7200 - time/3;
	h = time / 3600;
	time %= 3600;
	m = time / 60;
	time %= 60;
	s = time;
	writef("0%d:%s:%s\n",h,(m/10==0)? "0" ~ to!string(m) : to!string(m),(s/10==0)? "0" ~ to!string(s) : to!string(s));

    }

}