#include<iostream>
#include<cstdio>
#include<string>
using namespace std;

int main(){
  int x,y,z;

  while(true){
    //入力
    cin >> x >> y >> z;

    //終了条件
    if(x==-1 && y==-1 && z==-1) break;

    //計算
    int sum = z + y*60 + x*60*60;
    int ans = 2*60*60-sum;
    z = ans%60;
    y = ans/60;
    x = y/60;
    y = y%60;

    //出力
    char strx[100],stry[100],strz[100],strans[100];
    if(x/10 == 0){
      sprintf(strx,"0%d",x);
    }else{
      sprintf(strx,"%d",x);
    }
    if(y/10 == 0){
      sprintf(stry,"0%d",y);
    }else{
      sprintf(stry,"%d",y);
    }
    if(z/10 == 0){
      sprintf(strz,"0%d",z);
    }else{
      sprintf(strz,"%d",z);
    }
    sprintf(strans,"%s:%s:%s",strx,stry,strz);
    puts(strans);
    //３倍録画
    sum *= 3;
    ans = 6*60*60-sum;
    z = ans%60;
    y = ans/60;
    x = y/60;
    y = y%60;

 if(x/10 == 0){
      sprintf(strx,"0%d",x);
    }else{
      sprintf(strx,"%d",x);
    }
    if(y/10 == 0){
      sprintf(stry,"0%d",y);
    }else{
      sprintf(stry,"%d",y);
    }
    if(z/10 == 0){
      sprintf(strz,"0%d",z);
    }else{
      sprintf(strz,"%d",z);
    }
    sprintf(strans,"%s:%s:%s",strx,stry,strz);
    puts(strans);
  }
}