#include <iostream>
#include <cstdio>
using namespace std;

int main(){
	int h,m,s,dt,dtt,dh,dm,ds,dth,dtm,dts;
	const int mt = 120 * 60;
	while(cin >> h >> m >> s){
		if(h == -1) break;
		dt = mt - (3600 * h + 60 * m + s);
		dtt = 3 * dt;
		dh = dt / 3600;
		dt -= 3600 * dh;
		dm = dt / 60;
		dt -= 60 * dm;
		ds = dt;
		dth = dtt / 3600;
		dtt -= dth * 3600;
		dtm = dtt / 60;
		dtt -= dtm * 60;
		dts = dtt;
		printf("%02d:%02d:%02d\n",dh,dm,ds);
		printf("%02d:%02d:%02d\n",dth,dtm,dts);
	}
	return 0;
}