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

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