#include <bits/stdc++.h>
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,b) FOR(i,0,b)
#define BE(c) c.begin(),c.end()
#define PB push_back
#define F first
#define S second
#define BEB(s) s
using namespace std;
int main(){
	int a,b,c,d;
	while(1){
		cin>>a>>b>>c;
		if(a==-1&&b==-1&&c==-1)break;
		d=(120*60)-(a*60*60+b*60+c);
		printf("%02d:%02d:%02d\n",d/3600,d%3600/60,d%60);
		d*=3;
		printf("%02d:%02d:%02d\n",d/3600,d%3600/60,d%60);
	}
	return 0;
}