#include<iostream>
using namespace std;

int main()
{
	int t, m, s;
	int rest;
	while (cin>>t>>m>>s) {
		if (t==-1 && m==-1 && s==-1) break;
		rest = 120*60 - t*60*60-m*60-s;
		s = rest%60;
		m = (rest/60)%60;
		t = (rest/60)/60;
		printf("%02d:%02d:%02d\n", t, m, s);
		rest *= 3;
		s = rest%60;
		m = (rest/60)%60;
		t = (rest/60)/60;
		printf("%02d:%02d:%02d\n", t, m, s);
	}
	return 0;
}