#include <iostream>
#include <iomanip>
#define FZ2 setw(2)<<setfill('0')
using namespace std;
void hout(int sec){cout<<FZ2<<sec/3600<<":"<<FZ2<<(sec%3600)/60<<":"<<FZ2<<(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;
}