#include <iostream>

using namespace std;

void solve()
{
	int h, m, s;
	while(cin >> h >> m >> s)
	{
		if(h == -1 && m == -1 && s == -1)
		{
			break;
		}
		int normal = 7200;
		int modechar = 21600;
		int time = 3600 * h + 60 * m + s;
		normal -= time;
		modechar -= 3 * time;
		int n[3] = {0, 0, 0};
		int m[3] = {0, 0, 0};
		for(int i = 2; i >= 0; --i)
		{
			n[i] = normal % 60;
			m[i] = modechar % 60;
			normal /= 60;
			modechar /= 60;
		}
		printf("%02d:%02d:%02d\n", n[0], n[1], n[2]);
		printf("%02d:%02d:%02d\n", m[0], m[1], m[2]);
	}
}

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