#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int h,m,s;
	int st=7200,thi=21600;

	while(cin>>h>>m>>s,h!=-1)
	{
		st=7200;
		int ss=h*3600+m*60+s;
		st=st-ss; thi=st*3;

		printf("%02d:%02d:%02d\n",st/3600,st%3600/60,st%3600%60);
		printf("%02d:%02d:%02d\n",thi/3600,thi%3600/60,thi%3600%60);
	}
  return 0;
}