#include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;

int main() {
    int h,m,s,i,g;
	while(cin >> h >> m >> s) {
     if (h+m+s==-3) break;
	 g=s=7200-(3600*h+60*m+s);
	 for (i=0;i<2;i++) {
     h=s/3600; s-=h*3600; m=s/60; s-=m*60;
	 printf("%.2d:%.2d:%.2d\n",h,m,s);
	 s=g*3;
	 }
	}
	return 0;
}