#include<iostream>
#include<stdio.h>
using namespace std;
int main(void){
  int h,m,s;
  while(cin>>h>>m>>s){
    if(h==-1&&m==-1&&s==-1)break;
	int sum=2*60*60-h*60*60-m*60-s;
	int tmp=3*sum;
	printf("%02d:%02d:%02d\n%02d:%02d:%02d\n",sum/3600,sum%3600/60,sum%60,tmp/3600,tmp%3600/60,tmp%60);
  }
}	