#include "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;
using ld = long double;
template<class T>
using Table = vector<vector<T>>;
const ld eps = 1e-9;

//// < "D:\D_Download\Visual Studio 2015\Projects\programing_contest_c++\Debug\a.txt" > "D:\D_Download\Visual Studio 2015\Projects\programing_contest_c++\Debug\b.txt"

string to_string_keta(const long long int l, const int keta) {
	ostringstream oss;

	oss << std::setw(keta) << std::setfill('0') << l;

	return oss.str();
}
int main() {
	cout << fixed << setprecision(22);
	while (1) {
		int h, m, s; cin >> h >> m >> s;
		if (h == -1)break;
		int n = h * 3600 + m * 60 + s;
		{
			int rest = 7200 - n;
			int nh = rest / 3600;
			rest -= nh * 3600;
			int nm = rest / 60;
			int ns = rest % 60;
			cout << to_string_keta(nh, 2) << ":" << to_string_keta(nm, 2) << ":" << to_string_keta(ns, 2) << endl;

		}
		{
			int rest = 7200 - n;
			rest *= 3;
			int nh = rest / 3600;
			rest -= nh * 3600;
			int nm = rest / 60;
			int ns = rest % 60;
			cout << to_string_keta(nh, 2) << ":" << to_string_keta(nm, 2) << ":" << to_string_keta(ns, 2) << endl;

		}
	}

	return 0;
}