#include <iostream>
using namespace std;
int main( void )
{
	int h, m, s;
	while ( cin >> h >> m >> s && h != -1 && m != -1 && s != -1 )
	{
		int ss = h * 3600 + m * 60 + s;
		int a = 120 * 60 - ss;

		h = a / 3600;
		m = (a % 3600) / 60;
		s = a % 60;
		cout << h << ":" << m << ":" << s << endl;

		a *= 3;
		h = a / 3600;
		m = (a % 3600) / 60;
		s = a % 60;
		cout << h << ":" << m << ":" << s << endl;

	}
	return 0;
}