#include<iostream>
#include<cstdio>
using namespace std;

int main(){
	
	int h, m, s, x;
	
	while(cin >> h >> m >> s){
		if(h == -1) break;
		x = 120 * 60 - (3600 * h + 60 * m + s);
		h = x / 3600;
		m = (x - 3600 * h) / 60;
		s = x - 3600 * h - 60 * m;
		
		printf("%02d:%02d:%02d\n", h, m, s);
		
		h = 3 * x / 3600;
		m = (3 * x - 3600 * h) / 60;
		s = 3 * x - 3600 * h - 60 * m;
		
		printf("%02d:%02d:%02d\n", h, m, s);
	}
	
	return 0;
}