#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	for(;;){
		int a,b,c,s;
		cin>>a>>b>>c;
		if(a == -1 && b == -1 && c == -1){break;}
		s = a*3600+b*60+c;
		s = 2*60*60-s;
		printf("%02d:%02d:%02d\n",s/3600,(s%3600)/60,s%60);
		s*=3;
		printf("%02d:%02d:%02d\n",s/3600,(s%3600)/60,s%60);
	}
	return 0;
}