#include <iostream>
#include <cstdio>
using namespace std;

#define M (60)
#define H (3600)

int main()
{
	int h, m, s;
	
	while (cin >> h >> m >> s, h != -1, m != -1, s != -1){
		int t = 120 * 60;
		
		t -= (h * 3600 + m * 60 + s);
		
		printf("%02d:%02d:%02d\n", t / H, t % H / M, t % M);
		t *= 3;
		printf("%02d:%02d:%02d\n", t / H, t % H / M, t % M);
	}
	
	return (0);
}