#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<string>
#include<vector>
#include<map>
#include<stack>
#include<queue>

using namespace std;

void print(int p){
	if(p<10) printf("0");
	printf("%d",p);
}
void print_col(){
	printf(":");
}

int main(){
	int t,h,s;
	while(scanf("%d %d %d",&t,&h,&s)){
		if(t==-1&&h==-1&&s==-1)
		break;
		int res=120*60;
		int t3,h3,s3;
		s+=h*60+t*3600;
		s=res-s;
		s3=s*3;
		t=s/3600;
		s=s%3600;
		h=s/60;
		s=s%60;
		//
		t3=s3/3600;
		s3=s3%3600;
		h3=s3/60;
		s3=s3%60;
		print(t);
		print_col();
		print(h);
		print_col();
		print(s);
		printf("\n");
		print(t3);
		print_col();
		print(h3);
		print_col();
		print(s3);
		printf("\n");
	}
}
