#include<cstdio>
#include<algorithm>
#include<vector>
#include<string>
#include<iostream>
#include<queue>
#include<map>
#include<set>
#include<complex>
#include<stack>
#include<cmath>
 
using namespace std;
 
#define reps(i,f,n) for(int i=f;i<int(n);i++)
#define rep(i,n) reps(i,0,n)

int main(){
	
	int a,b,c;
	while(cin>>a>>b>>c){
		if(a==-1)break;
		
		int sum = 120*60-((a*60+b)*60+c);
		int sum2 = sum*3;
		
		vector<int> s;
		rep(i,3){
			s.push_back(sum%60);
			sum/=60;
		}
		
		vector<int> s2;
		rep(i,3){
			s2.push_back(sum2%60);
			sum2/=60;
		}
		
		printf("%02d:%02d:%02d\n",s[2],s[1],s[0]);
		printf("%02d:%02d:%02d\n",s2[2],s2[1],s2[0]);
	}
	
}