#include <iostream>
using namespace std;

int main()
{
	int h,m,s;
	while(cin >> h >> m >> s){
		if(h<0 && m<0 && s<0)
			break;
		int tape = 7200;
		tape = tape - h*3600;
		tape = tape - m*60;
		tape = tape - s;

		int tmp = tape;
		h = tape/3600;
		tape = tape%3600;
		m = tape/60;
		tape = tape%60;
		s = tape;
		if(h<10)
			cout << 0;
		cout << h << ":";
		if(m<10)
			cout << 0;
		cout << m << ":";
		if(s<10)
			cout << 0;
		cout << s << endl;

		tape = tmp*3;
		h = tape/3600;
		tape = tape%3600;
		m = tape/60;
		tape = tape%60;
		s = tape;
		if(h<10)
			cout << 0;
		cout << h << ":";
		if(m<10)
			cout << 0;
		cout << m << ":";
		if(s<10)
			cout << 0;
		cout << s << endl;
	}
	return 0;
}