#include<bits/stdc++.h>
using namespace std;

int main(){
    int h,m,s;
    while(1){
    	cin >> h >> m >> s;
    	if(h == -1 && m == -1 && s == -1)break;
    	int sum = h * 3600 + m * 60 + s;
    	int ans = 7200 - sum;
    	h = ans / 3600;
    	m = ans % 3600 / 60;
    	s = ans % 60;
    	cout << "0" << h << ":";
    	if(m < 10)cout << "0" << m << ":";
    	else cout << m << ":";

    	if(s < 10)cout << "0" << s << endl;
    	else cout << s << endl;

    	ans *= 3;
    	h = ans / 3600;
    	m = ans % 3600 / 60;
    	s = ans % 60;
    	cout << "0" << h << ":";
    	if(m < 10)cout << "0" << m << ":";
    	else cout << m << ":";

    	if(s < 10)cout << "0" << s << endl;
    	else cout << s << endl;
    }
    return 0;
}
