#include<iostream>
using namespace std;
int main(){
  int a,b,c;
  while(cin >>a>>b>>c){
    if(a == -1 && b == -1 && c == -1) break;
    int ans=c+b*60+a*60*60,x=2*60*60;
    int r=x-ans;
    cout <<(r/3600)<<":"<<(r/60)%60<<":"<<r%60<<endl;
    r*=3;
    cout <<(r/3600)<<":"<<(r/60)%60<<":"<<r%60<<endl;
  }
  return 0;
}