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

const int A = 2 * 3600; 

void show( int s ) {

  int a = s / 3600;
  int b = ( s - a*3600 ) / 60;
  int c = s - a*3600 - b*60;
  
  printf("%02d:%02d:%02d\n", a, b, c);
}

int main() {
  int h, m, s;
  while(cin >> h >> m >> s && h >= 0 ) {
    int a = h*3600 + m*60 + s;
    int stdRec = A - a;
    int std3Rec = A - a/3;

    show( stdRec );
    show( std3Rec );
  }
  
  return 0;
}