#include<iostream>

using namespace std;

int main(){

  int h,m,s;
  double time, tapeb;

  while(cin >> h >> m >> s){
    if(h == -1 && m == -1 && s == -1) break;
    double tape = 2 * 3600;
    time = h * 3600 + m * 60 + s;
    tape -= time;
    tapeb = tape*3;
    h = 0;
    m = 0;
    s = 0;

    while(tape >= 3600){
      h++;
      tape -= 3600;
    }
    while(tape >= 60){
      m++;
      tape -= 60;
    }
    s = tape;

    cout <<"0" <<h << ":";
    if(m < 10) cout <<"0";
    cout << m << ":";
    if(s < 10) cout << "0";
    cout << s << endl;

    h = 0;
    m = 0;
    s = 0;
    
    while(tapeb >= 3600){
      h++;
      tapeb -= 3600;
    }
    while(tapeb >= 60){
      m++;
      tapeb -= 60;
    }
    s = tapeb;


    cout <<"0" <<h << ":";
    if(m < 10) cout <<"0";
    cout << m << ":";
    if(s < 10) cout << "0";
    cout << s << endl;

  }

  return 0;
}