#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	int h, m, s, sum1, sum2;
	while(cin >> h >> m >> s)
	{
		if(h==-1&&m==-1&&s==-1)
			break;
		sum1 = 60*60*60*h + 60*60*m+ 60*s;

		sum1 = 60*60*60*2 - sum1;
		sum2 = sum1*3;

		h = sum1/216000;
		m = (sum1%216000)/3600;
		s = ((sum1%216000)%3600)/60;

		//if(h<0){ h=0;m=0;s=0;}
		printf("%02d:%02d:%02d\n",h,m,s);
		h = sum2/216000;
		m = (sum2%216000)/3600;
		s = ((sum2%216000)%3600)/60;
		//if(h<0){ h=0;m=0;s=0;}
		printf("%02d:%02d:%02d\n",h,m,s);
	}
}