#include <iostream>

using namespace std;

int main() {

	int h, m, s, t;
	int vh, vm, vs;

	while(cin >> h >> m >> s)  {
		if(h==-1&&m==-1&&s==-1)
			break;
		vh=0;
		vm=0;
		vs=0;
		t=h*3600+m*60+s;
		t=7200-t;
		while(t>=3600) {
			vh+=1;
			t-=3600;
		}
		while(t>=60) {
			vm+=1;
			t-=60;
		}
		while(t>0) {
			vs+=1;
			t-=1;
		}
		cout << "0" << vh << ":";
		if(vm<10)
			cout << "0" << vm << ":";
		else
			cout << vm << ":";
		if(vs<10)
			cout << "0" << vs << endl;
		else
			cout << vs << endl;

		vh=0;
		vm=0;
		vs=0;
		t=h*3600+m*60+s;
		t=7200-t;
		while(t>=3600) {
			vh+=1;
			t-=3600;
		}
		while(t>=60) {
			vm+=1;
			t-=60;
		}
		while(t>0) {
			vs+=1;
			t-=1;
		}
		vs*=3;
		vm*=3;
		vh*=3;
		while(vs>=60) {
			vm+=1;
			vs-=60;
		}
		while(vm>=60) {
			vh+=1;
			vm-=60;
		}
		cout << "0" << vh << ":";
		if(vm<10)
			cout << "0" << vm << ":";
		else
			cout << vm << ":";
		if(vs<10)
			cout << "0" << vs << endl;
		else
			cout << vs << endl;
	}

	return 0;

}