#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	int h,m,s,sum1,sum2;
	cin>>h>>m>>s;
	if(h!=-1&&m!=-1&&s!=-1){ 
	sum1 = 60*60*60*h+60*60*m+60*s;
	sum2 = sum1/3;
	sum1 = 60*60*60*2 - sum1;
	sum2 = 60*60*60*2 - sum2;
	h = sum1/216000;
	m = (sum1%216000)/3600;
	s = ((sum1%216000)%3600)/60;
	printf("%02d:%02d:%02d\n",h,m,s);
	h = sum2/216000;
	m = (sum2%216000)/3600;
	s = ((sum2%216000)%3600)/60;
	printf("%02d:%02d:%02d\n",h,m,s);
	}
}