#include<iostream>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<utility>
#include<vector>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<time.h>
#define loop(i,a,b) for(int i=a;i<b;i++) 
#define rep(i,a) loop(i,0,a)
#define rp(a) while(a--)
#define pb push_back
#define mp make_pair
#define all(in) in.begin(),in.end()
const double PI=acos(-1);
const double EPS=1e-10;
using namespace std;
typedef long long ll;
typedef vector<int> vi;
int main(){
	int a,b,c;
	while(cin>>a>>b>>c,a+1){
		int sum=a*3600+b*60+c;
		int out=7200-sum;
		printf("%02d:%02d:%02d\n",out/3600,(out%3600)/60,out%60);
		/*double tmp=sum/3.0;
		if(tmp-(int)tmp)tmp++;
		out=7200-(int)tmp;*/
		out*=3;
		printf("%02d:%02d:%02d\n",out/3600,(out%3600)/60,out%60);
	}
}