#include<iostream>
#include<cstdio>
#include<algorithm>
#include<string>
#include<cstring>
using namespace std;
int main(){
	int h,m,s;
	while(1){
        scanf("%d %d %d",&h,&m,&s);
        if(h == -1 && m == -1 && s == -1) break;
        int ans1 = 7200;
        int ans2 = 7200;
        ans1 -= h*3600 + m * 60 + s;
        ans2 = ans1 * 3;

        printf("%02d:%02d:%02d\n%02d:%02d:%02d\n",ans1/3600,(ans1%3600)/60,ans1%60,ans2/3600,(ans2%3600)/60,ans2%60);
	}

	return 0;
}