#include <iostream>
using namespace std;

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