#include<iostream>

using namespace std;

int conv(int h, int m, int s)
{
	return s+m*60+h*60*60;
}

void reconv(int time, int *h, int *m, int *s)
{
	*h=time/(60*60);
	time%=60*60;
	*m=time/60;
	*s=time%60;
}

void print(int n)
{
	if(n<10){
		cout<<0<<n;
	}
	else{
		cout<<n;
	}
}

int main()
{
	int max=conv(0,120,0);
	while(1)
	{
		int h,m,s;
		cin>>h>>m>>s;
		if(h==-1&&m==-1&&s==-1)break;
		int ans1=max-conv(h,m,s);
		int ans2=ans1*3;
		reconv(ans1,&h,&m,&s);
		print(h); cout<<":"; print(m); cout<<":"; print(s); cout<<endl;
		reconv(ans2,&h,&m,&s);
		print(h); cout<<":"; print(m); cout<<":"; print(s); cout<<endl;
	}
}