#include <iostream>
using namespace std;
void hout(int sec){cout<<sec/3600<<":"<<(sec%3600)/60<<":"<<(sec%3600)%60<<"\n";}
int main(){
	const int rec = 7200;
	int h,m,s;
	while(cin>>h>>m>>s){
		if(h==-1&&m==-1&&s==-1) break;
		int rem = rec - (h*3600+m*60+s);
		hout(rem);hout(rem*3);
	}
	return 0;
}