#include <iostream>
using namespace std;

void show( int rest ){
	int h = rest / 3600;
	rest %= 3600;
	int m = rest / 60;
	rest %= 60;
	int s = rest;
	cout << ( !( h / 10 ) ? "0" : "" ) << h << ":"
		 << ( !( m / 10 ) ? "0" : "" ) << m << ":"
		 << ( !( s / 10 ) ? "0" : "" ) << s << endl;
}

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

	while ( cin >> h >> m >> s && !( h == -1 && m == -1 && s == -1 ) ){
		int rest = 7200 - ( h * 3600 + m * 60 + s );
		show( rest );
		show( rest * 3 );
	}
	return 0;
}