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

using namespace std;

void func(int ts){
	int h,m,s;
	h = ts / (60*60);
	ts -= 60*60*h;
	m = ts / 60;
	ts -= 60*m;
	s = ts;
	
	printf("%02d:%02d:%02d\n", h, m, s);
}


int main(void){
	
	int h,m,s;
	while(scanf("%d %d %d", &h, &m, &s) && h != -1){
		int ts = (60*60*2)-(60*60*h+60*m+s);
		func(ts);
		func(ts*3);
	}
	
	return 0;
}