#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 / 60 % 60;
  int c = s % 60;
  
  printf("%02d:%02d:%02d\n", (int)a, (int)b, (int)c);
}

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

    show( aa );
    show( aa*3 );
  }
  
  return 0;
}