#include <iostream>
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <math.h>
using namespace std;

int main(){
	
	while(1){
		int h,m,s,l,l2;
		scanf("%d %d %d",&h,&m,&s);
		if(h==-1&&m==-1&&s==-1)return 0;
		l=7200-3600*h-60*m-s;l2=l*3;
		h=l/3600;l-=h*3600;m=l/60;s=l-m*60;
		cout<<0<<h<<":";
		if(m<=9)cout<<0;
		cout<<m<<":";
		if(s<=9)cout<<0;
		cout<<s<<endl;
		h=l2/3600;l2-=h*3600;m=l2/60;s=l2-m*60;
		cout<<0<<h<<":";
		if(m<=9)cout<<0;
		cout<<m<<":";
		if(s<=9)cout<<0;
		cout<<s<<endl;
	}
}