#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;
int h,m,s;
string conv(int t){
	char str[100];
	sprintf(str,"%02d:%02d:%02d",t/60/60,(t/60)%60,t%60);
	return string(str);
}
void solve(){
	int time=(h*60+m)*60+s;
	int remain=60*60*2-time;
	cout<<conv(remain)<<endl;
	cout<<conv(remain*3)<<endl;

}
int main(){
	while(cin>>h>>m>>s){
		if(h==-1)break;
		solve();
	}

	return 0;
}