#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <functional>
#include <iostream>
#include <map>
#include <set>
using namespace std;
typedef pair<int,int> P;
#define pu push
#define pb push_back
#define mp make_pair
#define eps 1e-7
#define INF 2000000000
bool check(int x)
{
	if(x<10)return true;
	else return false;
}
void mprint(int a,int b,int c)
{
	if(check(a))
	{
		cout << 0 << a;
	}
	else
	{
		cout << a;
	}
	cout << ':';
	if(check(b))
	{
		cout << 0 << b;
	}
	else
	{
		cout << b;
	}
	cout << ':';
	if(check(c))
	{
		cout << 0 << c;
	}
	else
	{
		cout << c;
	}
	cout << endl;
	return ;
}
int main()
{
	int const v=120*60;
	int a,b,c;
	while(1)
	{
		cin >> a >> b >> c;
		if(a==-1&&b==-1&&c==-1)break;
		int x=0,t=v;
		x+=3600*a;
		x+=60*b;
		x+=c;
		x=t-x;
		int y=3*x;
		a=x/3600;
		x-=a*3600;
		b=x/60;
		x-=b*60;
		c=x;
		mprint(a,b,c);
		a=y/3600;
		y-=a*3600;
		b=y/60;
		y-=b*60;
		c=y;
		mprint(a,b,c);
	}
	return 0;
}