#include <iostream>
using namespace std;

int main() {
  int h,m,s,recs[2],recm[2],rech[2];
  while(cin >> h >> m >> s) {
    if((h == -1)&&(m == -1)&&(s == -1)) break;
    s += m * 60 + h * 3600;
    recs[0] = 7200 - s;
    recs[1] = recs[0] * 3;
    for(int i=0;i<2;i++) {
      rech[i] = recs[i] / 3600;
      recm[i] = (recs[i] % 3600) / 60;
      recs[i] = (recs[i] % 60);
    }
    for(int i=0;i<2;i++) {
      if(recs[i]<10)
        cout << "0" << rech[i] << ":" << recm[i] << ":" << "0" << recs[i] << endl;
      else
        cout << "0" << rech[i] << ":" << recm[i] << ":" << recs[i] << endl;
    }
  }
}