#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdio>
#include <string>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cmath>
#include <functional>
#include <numeric>
#include <iomanip>
#define fi first
#define se second
#define fcout(n) cout<<fixed<<setprecision((n))
using namespace std;
bool value(int y,int x,int R,int C){return 0<=y&&y<R&&0<=x&&x<C;}
typedef pair<int,int> pii;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long > vll;
typedef vector< vi > vvi;
double pie=acos(-1);
int INF=10000009;
int dx[4] = { 0,-1,0,1 };
int dy[4] = { -1,0,1,0 };
int main() {
	int a=7200;
	int x,y,z;
	int t1,t3;
	int p,q,r;
	string A,B,C;
	while(true){
		cin>>x>>y>>z;
		if(x+y+z==-3) break;
		t1=a-x*3600-y*60-z;
		t3=3*t1;
		p=t1/3600;
		t1%=3600;
		q=t1/60;
		r=t1%60;
		A="0"+to_string(p);
		if(q>=10){
			B=to_string(q);
		}
		else{
			B="0"+to_string(q);
		}
		if(r>=10){
			C=to_string(r);
		}
		else{
			C="0"+to_string(r);
		}
		cout<<A<<":"<<B<<":"<<C<<endl;
		p=t3/3600;
		t3%=3600;
		q=t3/60;
		r=t3%60;
		A="0"+to_string(p);
		if(q>=10){
			B=to_string(q);
		}
		else{
			B="0"+to_string(q);
		}
		if(r>=10){
			C=to_string(r);
		}
		else{
			C="0"+to_string(r);
		}
		cout<<A<<":"<<B<<":"<<C<<endl;
	}
}