#include <cstdio>
#include <iostream>
#include <string>

using namespace std;

int main(){
	int t,h,s;
	int T,H,S;
	int time,value;
	while(cin >> t >> h >> s){
		if(t != -1 && h != -1 && s != -1){
			//?¨????
			T=2,H=0,S=0;

			T -= t;

			if(h > H){
				T--;
				H += 60;
			}
			H -= h;

			if(s > S){
				H--;
				S += 60;
			}
			S -= s;

			printf("%02d:%02d:%02d\n",T,H,S);

			//?????????
			T=2,H=0,S=0;
			time = (t * 3600 + h * 60 + s) / 3;
			t = time / 3600;
			time -= t * 3600;
			h = time / 60;
			time -= h * 60;
			s = time;

			T -= t;

			if(h > H){
				T--;
				H += 60;
			}
			H -= h;

			if(s > S){
				H--;
				S += 60;
			}
			S -= s;

			printf("%02d:%02d:%02d\n",T,H,S);


		}else{
			break;
		}
	}

}