#include<iostream>
#include<iomanip>
using namespace std;

int main(){
	int h,m,s;
	int t,trp;

	while(cin>>h>>m>>s){
		if(h==-1&&m==-1&&s==-1)break;

		t=h*60*60+m*60+s;
		
		trp = 7200 - t/3;
		t = 7200 - t;
		
		cout.fill('0');
		cout << setw(2) << t/3600 << ":" << setw(2) << (t - (t/3600*3600))/60 << ":" << setw(2) << t-(t/60*60) << endl;


		cout << setw(2) << trp/3600 << ":" << setw(2) << (trp - (trp/3600*3600))/60 << ":" << setw(2) << trp-(trp/60*60) << endl;


	}
	return 0;
}