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

int hh, mm, ss;

void print_hms(int s) {
  int th, tm, ts;
  if (s >= 3600) {
    th = s / 3600;
    s %= 3600;
  }
  if (s >= 60) {
    tm = s / 60;
    s %= 60;
  }
  printf("%02d:%02d:%02d\n", th, tm, ts);
}

void solve() {
  int sum_ss = hh * 3600 + mm * 60 + ss;
  int notimes = 7200 - sum_ss;
  int thtimes = 7200 - (sum_ss / 3);
  print_hms(notimes);
  print_hms(thtimes);
}

int main (int argc, char const* argv[]) {
  while (cin>>hh>>mm>>ss) {
    if (hh == -1) break;
    solve();
  }
  return 0;
}