#include <stdio.h>

int main(void) {
	int h, m, s;
	int h1, m1, s1;
	int h2, m2, s2;
	int sum_s;
	int tmp1, tmp2;

	while(1) {
		scanf("%d %d %d", &h, &m, &s);

		if(h == -1 && m == -1 && s == -1)
			break;

		sum_s = (h * 3600 + m * 60 + s);
		tmp1 = 3600 * 2 - sum_s;
		tmp2 = tmp1 * 3;

		h1 = tmp1 / 3600;
		m1 = (tmp1 - 3600 * h1) / 60;
		s1 = tmp1 - 3600 * h1 - 60 * m1;

		h2 = tmp2 / 3600;
		m2 = (tmp2 - 3600 * h2) / 60;
		s2 = tmp2 - 3600 * h2 - 60 * m2;

		printf("%02d:%02d:%02d\n", h1, m1, s1);
		printf("%02d:%02d:%02d\n", h2, m2, s2);
	}

	return 0;
}