#include<iostream>
#include <iomanip>
using namespace std;
const int total=120*60;
void print(int x){
	int h=x/3600,m=x%3600/60,s=x%60;
	cout << setw(2) << setfill('0') << h << ":" << setw(2) << m << ":" << setw(2) << s << endl; 
}
int main(){
	int h,m,s;
	while (cin >> h >> m >> s){
		if (h==-1 && m==-1 && s==-1) break;
		int counter=h*3600+m*60+s;
		int left=total-counter;
		print(left);
		print(left*3); 
	}
	return 0;
} 