#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a = 0, b = 0, c = 0;
  int d = 0, e = 0, f = 0;
  while (1) {
    cin >> a >> b >> c;
    if (a == -1) break;
    c += a * 3600;
    c += b * 60;
    c = 7200 - c;
    a = 0, b = 0;
    f = 3 * c;
    int flg = 1;
    for (; flg == 1;) {
      flg = 0;
      if (c >= 3600)
        a++, c -= 3600, flg = 1;
      else if (c >= 60)
        b++, c -= 60, flg = 1;
    }
    printf("%02d:%02d:%02d\n", a, b, c);
    flg = 1;
    for (; flg == 1;) {
      flg = 0;
      if (f >= 3600)
        d++, f -= 3600, flg = 1;
      else if (f >= 60)
        e++, f -= 60, flg = 1;
    }
    printf("%02d:%02d:%02d\n", d, e, f);
  }
  return 0;
}
