#include <iostream>
using namespace std;

int main(){
	int h;
	int m;
	int s;
	while(cin >> h >> m >> s){
		if(h == -1 && m == -1 && s == -1) break;
		int rest = 7200 - (3600 * h + m * 60 + s);
		int rh = rest / 3600;
		int rm = (rest % 3600) / 60;
		int rs = rest % 60;
		int rh2 = (rest * 3) / 3600;
		int rm2 = ((rest * 3) % 3600) / 60;
		int rs2 = (rest * 3) % 60;
		cout << 0 << rh << ":";
		if(rm >= 10){
			cout << rm << ":";
		}else{
			cout << 0 << rm << ":";
		}
		if(rs >= 10){
			cout << rs << endl;
		}else{
			cout << 0 << rs << endl;
		}
		cout << 0 << rh2 << ":";
		if(rm2 >= 10){
			cout << rm2 << ":";
		}else{
			cout << 0 << rm2 << ":";
		}
		if(rs2 >= 10){
			cout << rs2 <<endl;
		}else{
			cout << 0 << rs2 << endl;
		}
	}
	return 0;
}