#include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include <vector>
#include <iomanip>
#include <queue>
#include <cmath>
#include <set>
#include <map>
#include <cstdlib>
#include <cstdio>
using namespace std;

int dx[] = {1, -1, 0, 0};
int dy[] = {0, 0, -1, 1};

void print_hms(int sec){
	int h, m, s;
	s = sec % 60;
	m = (sec/60) % 60;
	h = sec/3600;

	printf("%02d:%02d:%02d\n", h, m, s);
}

int main(){
	int h, m, s;
	while(cin >> h >> m >> s, s != -1 ){
		const int twh = 7200;
		int sec;
		sec = h*60*60+m*60+s;
		print_hms(twh - sec);
		print_hms((twh - sec)*3);
	}

	return 0;
}