#include<iostream>
#include<cstdio>
#include <cstring>
#include<map>
#include<string>
#include<stack>
#include <sstream>
using namespace std;


string IntToString(int number)
{
stringstream ss;
ss << number;
return ss.str();
}

string print(int *a){
	string kari;
	if(*a<10) kari+="0"+IntToString(*a);
	else kari+=IntToString(*a);
	return kari;
}

void ans1(int *a, int *b, int *c){
	double kari;
	kari = 2*3600-((*a)*3600+(*b)*60+(*c));
	*a = kari/3600;
	*b = ( kari-( (*a)*3600 ) )/60;
	*c = kari-( (*a)*3600 + (*b)*60);
}

void ans2(int *a, int *b, int *c){
	double kari;
	kari = 3*(((*a)*3600+(*b)*60+(*c)));
	*a = kari/3600;
	*b = ( kari-( (*a)*3600 ) )/60;
	*c = kari-( (*a)*3600 + (*b)*60);
}

int main(){
	int h,m,s;
	while(scanf("%d %d %d",&h ,&m ,&s))
	{
		int *a,*b,*c; 
		if(h==-1)break;
		a=&h;b=&m;c=&s;
		ans1(a, b, c);
		cout<<print(a)<<":"<<print(b)<<":"<<print(c)<<endl;
		ans2(a, b, c);
		cout<<print(a)<<":"<<print(b)<<":"<<print(c)<<endl;
	}
	return 0;
}