#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	int h,m,s;
	while(cin>>h>>m>>s){
		if(h==-1&&m==-1&&s==-1) break;
		int time=120*60 - h*60*60 - m*60 - s;
		printf("%02d:%02d:%02d\n",time/60/60,(time/60)%60,time%60%60);
		time*=3;
		printf("%02d:%02d:%02d\n",time/60/60,(time/60)%60,time%60%60);
	}
	return 0;
}