#include <bits/stdc++.h>

using namespace std;

int main()
{
	long long int a , b , c;
	while(cin >> a >> b >> c , a + 1 || b + 1 || c + 1)
	{
		b += a * 60;
		c += b * 60;
		long long int x1 = c , x2 = c;
		long long int m = 120 * 60;
		long long int y1 = m - x1 , y2 = m - x2;
		y2 *= 3;
		cout.fill('0');
		cout << setw(2) << y1 / ( 60 * 60 ) << ":" << setw(2) << y1 % ( 60 * 60 ) / 60 << ":" << setw(2) << y1 % 60 << endl;
		cout << setw(2) << y2 / ( 60 * 60 ) << ":" << setw(2) << y2 % ( 60 * 60 ) / 60 << ":" << setw(2) << y2 % 60 << endl;
	}
}