#include<iostream>
using namespace std;
int main(){
	int h,m,s,sum1,sum2;
	cin>>h>>m>>s;
	if(h==-1&&m==-1&&s==-1)break;
	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;
	cout<<h<<':'<<m<<':'<<s<<endl;;
	h = sum2/216000;
	m = (sum2%216000)/3600;
	s = ((sum2%216000)%3600)/60;
	cout<<h<<':'<<m<<':'<<s;
}