#include <cstdio>
#include <vector>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <sstream>
#include <cmath>
#include <climits>
#include <set>
#include <iostream>
#include <map>
#include <functional>
#include <cstdlib>
#include <numeric>
#include <queue>

using namespace std;

#define reep(i,f,n) for(int i=f; i<int(n); ++i)
#define rep(i,n) reep(i,0,n)

typedef vector<int> vi;
typedef pair<int, int> pii;

int main()
{
	int h, m, s;
	while(scanf("%d%d%d", &h, &m, &s), h!=-1){
		int rest = 120*60 - (h*60*60 + m*60 + s);
		printf("%02d:%02d:%02d\n", rest/3600, rest%3600/60, rest%60);
		rest *= 3;
		printf("%02d:%02d:%02d\n", rest/3600, rest%3600/60, rest%60);
	}

	return 0;
}