// 2011/05/23 Tazoe

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

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

		int rem = 2*60*60-h*60*60-m*60-s;
		int rh  = rem/60/60;
		int rm  = rem/60%60;
		int rs  = rem%60;
		cout << setw(2) << setfill('0') << rh << ':';
		cout << setw(2) << setfill('0') << rm << ':';
		cout << setw(2) << setfill('0') << rs << endl;

		rem = rem*3;
		rh  = rem/60/60;
		rm  = rem/60%60;
		rs  = rem%60;
		cout << setw(2) << setfill('0') << rh << ':';
		cout << setw(2) << setfill('0') << rm << ':';
		cout << setw(2) << setfill('0') << rs << endl;
	}

	return 0;
}