#include <bits/stdc++.h>
using namespace std;
int main(){
  long long a,b,c,s,ss;
  while(1){
    cin >> a >> b >> c;
    if(a<0 or b<0 or c<0){
      return 0;
    }
    s=7200-a*3600-b*60-c;
    ss=(7200-a*3600-b*60-c)*3;
    cout << 0 << s/3600 << ":";
    s%=3600;
    cout << ((s<600)?"0":"") << s/60 << ":";
    s%=60;
    cout << ((s<10)?"0":"") << s << endl;
    cout << 0 << ss/3600 << ":";
    ss%=3600;
    cout << ((ss<600)?"0":"") << ss/60 << ":";
    ss%=60;
    cout << ((ss<10)?"0":"") << ss << endl;
  }
}

