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

// struct hms {
//   int t;
//   int h, m, s;
//   hms(int _h, int _m, int _s) {h=_h;m=_m;s=_s;t=h*3600+m*60+s;}
//   hms(int _t) {t = _t; h = t/3600; m = t%3600/60; s=t%60;}
// };

struct hms {
  double t;
  double h, m, s;
  void calc(double _t) {
    h = floor(_t/3600);
    m = floor((_t-h*3600)/60);
    s = fmod(_t,60);
  }
  hms(double _h, double _m, double _s) { t=_h*3600+_m*60+_s; calc(t); }
  hms(double _t) {t = _t; calc(t);}
};

int main() {

  int h, m, s;
  while(cin >> h >> m >> s) {
    if (h==-1&&m==-1&&s==-1) break;
    hms ans(hms(2,0,0).t-hms(h,m,s).t);
    printf("%02.lf:%02.lf:%02.lf\n", ans.h,ans.m,ans.s);
    hms ans2(hms(2,0,0).t-hms(h,m,s).t/3);
    printf("%02.lf:%02.lf:%02d\n", ans2.h,ans2.m,(int)ans2.s);
  }
}