#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
	int T, H, S;
	
	while (true) {
		cin >> T >> H >> S;
		if ( T==-1 && H==-1 && S==-1 ) break;
		
		int rest = 7200 - 3600*T - 60*H - S;
		int triple_rest = 3 * rest;
		
		cout << setfill('0') << setw(2) << rest/3600 << ":"; rest %= 3600;
		cout << setfill('0') << setw(2) << rest/60 << ":";   rest %= 60;
		cout << setfill('0') << setw(2) << rest << endl;
		
		cout << setfill('0') << setw(2) << triple_rest/3600 << ":"; triple_rest %= 3600;
		cout << setfill('0') << setw(2) << triple_rest/60 << ":";   triple_rest %= 60;
		cout << setfill('0') << setw(2) << triple_rest << endl;
	}
	
	return 0;
}