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

int main()
{
  int h, m, s, h3, m3, s3;
  while (1){
    cin >> h >> m >> s;
    if (h < 0){
      break;
    }
    m += 60 * h;
    s += 60 * m;
    s = 7200 - s;
    s3 = s * 3;
    m = s / 60;
    s %= 60;
    h = m / 60;
    m %= 60;
    m3 = s3 / 60;
    s3 %= 60;
    h3 = m3 / 60;
    m3 %= 60;
    printf("%02d:%02d:%02d\n%02d:%02d:%02d\n", h, m, s, h3, m3, s3);
  }

  return 0;
}