#include <cstdio>
#include <string>
using namespace std;
int main()
{
	int h[2], m[2], s[2], t, u, w, v = 7200;
	while (scanf("%d %d %d", &h[0], &m[0], &s[0]) && h[0] != -1 && m[0] != -1 && s[0] != -1)
	{
		t = h[0] * 3600 + m[0] * 60 + s[0];
		u = v - t;
		w = u * 3;
		h[1] = u / 3600;
		m[1] = (u % 3600) / 60;
		s[1] = (u % 3600) % 60;
		printf("%02d:%02d:%02d\n", h[1], m[1], s[1]);
		h[1] = w / 3600;
		m[1] = (w % 3600) / 60;
		s[1] = (w % 3600) % 60;
		printf("%02d:%02d:%02d\n", h[1], m[1], s[1]);
	}
}