#include <iostream>
#include <cstdio>
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;}
};


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("%02d:%02d:%02d\n", ans.h,ans.m,ans.s);
    hms ans2(ans.t*3);
    printf("%02d:%02d:%02d\n", ans2.h,ans2.m,ans2.s);
  }
}