#include <iostream>
using namespace std;
int main(void) {
  int h, m, s;
  int h1, m1, s1, h2, m2, s2;
  int sec, rest;
  int rest1, rest2;

  while(1) {
    sec = 0;
    h1 = 0; m1 = 0; s1 = 0;
    h2 = 0; m2 = 0; s2 = 0;
    rest = 7200;
    cin >> h >> m >> s;
    if(h == -1 && m == -1 && s == -1) break;
    sec += h * 3600;
    sec += m * 60;
    sec += s;
    
    rest1 = rest - sec;
    while(rest1 != 0) {
      if(rest1 >= 3600) { rest1 -= 3600; h1++; }
      else if(rest1 >= 60) { rest1 -= 60; m1++; }
      else { rest1 -= 1; s1++; }
    }

    rest2 = rest - sec;
    rest2 *= 3;
    while(rest2 != 0) {
      if(rest2 >= 3600) { rest2 -= 3600; h2++; }
      else if(rest2 >= 60) { rest2 -= 60; m2++; }
      else { rest2 -= 1; s2++; }
    }
    
    cout << "0" << h1 << ":";
    if(m1 < 10) cout << "0" << m1 << ":";
    else cout << m1 << ":";    
    if(s1 < 10) cout << "0" << s1 << endl;
    else cout << s1 << endl;
    
    cout << "0" << h2 << ":";
    if(m2 < 10) cout << "0" << m2 << ":";
    else cout << m2 << ":";
    if(s2 < 10) cout << "0" << s2 << endl;
    else cout << s2 << endl;
    
  }
  return 0;
}