#include <iostream>
#include <utility>
#include <algorithm>
#include <string>
#include <vector>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <cstdlib>

typedef long long int ll;


using namespace std;

int h,m,s;

int main(){
	while(1){
		cin>>h>>m>>s;
		if(h==-1&&m==-1&&s==-1)break;
		s=s+m*60+h*3600;
		s=120*60-s;
		h=s/3600;
		s%=3600;
		m=s/60;
		s%=60;
		printf("%02d:%02d:%02d\n",h,m,s);
		s=s+m*60+h*3600;
		s*=3;
		h=s/3600;
		s%=3600;
		m=s/60;
		s%=60;
		printf("%02d:%02d:%02d\n",h,m,s);
	}
}