#include <iostream>
#include <cstdio>
using namespace std;
int h,m,s;
void solve(){
	int t=(h*60+m)*60+s;
	int r=60*60*2-t;
	printf("%02d:%02d:%02d\n",r/60/60,(r/60)%60,r%60);
	r*=3;
	printf("%02d:%02d:%02d\n",r/60/60,(r/60)%60,r%60);
}
int main(){
	while(cin>>h>>m>>s&&h!=-1){
		solve();
	}
	return 0;
}