#include <algorithm>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <cctype>
#include <iostream>
#include <set>
#include <string>
#include <queue>
#include <map>
using namespace std;
int size(string x){
	string::size_type size=x.size();
	return size;
}
#define fu(l,k) for(int i=l;i<k;i++)
#define fd(l,k) for(int i=l;i>k;i--)
#define fi first
#define se second
typedef  vector<string> vs;
typedef  vector<int> vi;
double pi(){
	return M_PI;
}
typedef set<int> set_i;
typedef set<string> set_s;
int INF=1000000;
int main(){
	int h,m,s;
	while(1){
		int sr=0,ssr,ssr3,ur[3]={};
		cin>>h>>m>>s;
		if(h==-1&&m==-1&&s==-1) break;
		sr=h*3600+m*60+s;
		ssr=120*60-sr;
		ssr3=ssr*3;
		ur[0]=ssr/3600;
		ur[1]=(ssr%3600)/60;
		ur[2]=(ssr%3600)%60;
		fu(0,3){
			if(ur[i]<10&&i!=2) cout<<"0"<<ur[i]<<":";
			else if(ur[i]>=10&&i!=2) cout<<ur[i]<<":";
			else if(ur[i]<10) cout<<"0"<<ur[i]<<endl;
			else cout<<ur[i]<<endl;
		}
			ur[0]=ssr3/3600;
			ur[1]=(ssr3%3600)/60;
			ur[2]=(ssr3%3600)%60;
			fu(0,3){
				if(ur[i]<10&&i!=2) cout<<"0"<<ur[i]<<":";
				else if(ur[i]>=10&&i!=2) cout<<ur[i]<<":";
				else if(ur[i]<10) cout<<"0"<<ur[i]<<endl;
				else cout<<ur[i]<<endl;
		}
	}
}