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

int main(){
  int a[3], b[3], sum, sum3;
  while(cin >> a[0] >> a[1] >> a[2] && a[0] >= 0) {
    sum = 120*60 - a[0]*60*60 - a[1]*60 - a[2];
    sum3 = sum*3;
    
    a[0] = sum/60/60;
    a[1] = sum/60 - a[0]*60;
    a[2] = sum - a[0]*60*60 - a[1]*60;
    
    b[0] = sum3/60/60;
    b[1] = sum3/60 - b[0]*60;
    b[2] = sum3 - b[0]*60*60 - b[1]*60;

    printf("%02d:%02d:%02d\n", a[0], a[1], a[2]);
    printf("%02d:%02d:%02d\n", b[0], b[1], b[2]);
  }
  return 0;
}
  
  