#include<stdio.h>
#include<iostream>
using namespace std;

int main(){

	
	
	int x,y,z;
	while(1){
		cin>>x>>y>>z;
			if(x==-1&&y==-1&&z==-1)break;
	int a=0,b=0,c=0;
	int D=120*60;
	int dd=0;
	dd+=3600*x+60*y+z;
	D-=dd;
	int G=3*D;

	a=D/3600;D=D%3600;
	b=D/60;D=D%60;
	c=D;
	if(a<10)cout<<"0";
	cout<<a<<":";
	if(b<10)cout<<"0";
	cout<<b<<":";
	if(c<10)cout<<"0";
	cout<<c<<endl;
	

	a=G/3600;G=G%3600;
	b=G/60;G=G%60;
	c=G;
	if(a<10)cout<<"0";
	cout<<a<<":";
	if(b<10)cout<<"0";
	cout<<b<<":";
	if(c<10)cout<<"0";
	cout<<c<<endl;

	}
	return 0;
}