#include <iostream>

using namespace std;

void solve()
{
	int time = 7200;
	int h, m, s;
	while(cin >> h >> m >> s)
	{
		if(h == -1 && m == -1 && s == -1)
		{
			break;
		}
		int sum = time - (3600 * h + 60 * m + s);
		int sum3 = sum * 3;
		h = sum / 3600;
		sum %= 3600;
		m = sum / 60;
		sum %= 60;
		s = sum;
		cout << "0" << h << ":";
		if(m < 10)
		{
			cout << "0" << m << ":";
		}
		else
		{
			cout << m << ":";
		}
		if(s < 10)
		{
			cout << "0" << s << endl;
		}
		else
		{
			cout << s << endl;
		}
		int h3, m3, s3;
		h3 = sum3 / 3600;
		sum3 %= 3600;
		m3 = sum3 / 60;
		sum3 %= 60;
		s3 = sum3;
		cout << "0" << h3 << ":";
		if(m3 < 10)
		{
			cout << "0" << m3 << ":";
		}
		else
		{
			cout << m3 << ":";
		}
		if(s3 < 10)
		{
			cout << "0" << s3 << endl;
		}
		else
		{
			cout << s3 << endl;
		}
	}
}

int main()
{
	solve();
	return(0);
}