#include<iostream>
using namespace std;

int main(){
	int h,m,s,time,threetime,all=2*60*60;
	while(1){
		cin>>h>>m>>s;
		if(h==-1 && m==-1 && s==-1)break;
		time=h*60*60+m*60+s;
		threetime=time/3;
		h=(all-time)/3600;
		m=(all-time-h*3600)/60;
		s=(all-time-h*3600)%60;
		if(h/10==0)cout<<"0"<<h<<":";
		else cout<<h<<" ";
		if(m/10==0)cout<<"0"<<m<<":";
		else cout<<m<<":";
		if(s/10==0)cout<<"0"<<s<<endl;
		else cout<<s<<endl;
		h=(all-threetime)/3600;
		m=(all-threetime-h*3600)/60;
		s=(all-threetime-h*3600)%60;
		if(h/10==0)cout<<"0"<<h<<":";
		else cout<<h<<" ";
		if(m/10==0)cout<<"0"<<m<<":";
		else cout<<m<<":";
		if(s/10==0)cout<<"0"<<s<<endl;
		else cout<<s<<endl;
	}
	return 0;
}