#include <iostream>
#include <iomanip>
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 << setfill('0') << setw(2) << h << ":" << setw(2) << m << ":" << setw(2) << s << endl;

		a *= 3;
		h = a / 3600;
		m = (a % 3600) / 60;
		s = a % 60;
		cout << setfill('0') << setw(2) << h << ":" << setw(2) << m << ":" << setw(2) << s << endl;

	}
	return 0;
}