#define _USE_MATH_DEFINES
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
#include <cfloat>
#include <ctime>
#include <cassert>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
#include <numeric>
#include <list>
#include <iomanip>

using namespace std;

void print(int x){
	printf("%02d:%02d:%02d\n",x/3600,(x/60)%60,x%60);
}

int main(){
	int a,b,c;
	while(cin>>a>>b>>c,(~a||~b||~c)){
		int sum = a*3600 + b * 60 + c;
		print(sum / 3);
		print(sum);
	}
	
    return 0;
}