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

int main(void){
  int h,m,s;
  int rest, tri;
  
  while (cin >> h >> m >> s){
    if (h<0) break;
    rest = 2*3600 - (h*3600+m*60+s);
    tri = rest * 3;
    s = rest%60; rest/=60;
    m = rest%60; rest/=60;
    h = rest;
    printf("%02d:%02d:%02d\n", h, m, s);
    s = tri%60; tri/=60;
    m = tri%60; tri/=60;
    h = tri;
    printf("%02d:%02d:%02d\n", h, m, s);
  }
  return 0;
}
