#include<iostream>
using namespace std;
int main(){
  int a,b,c,d,e,f;
  while(cin>>a>>b>>c){
    if(a==-1)break;
    f=-c;e=-b;d=2-a;
    if(f<0)f+=60,e--;
    if(e<0)e+=60,d--;
    printf("%.2d:%.2d:%.2d\n",d,e,f);
    f*=3,e*=3,d*=3;if(f>59)e+=f/60,f%=60;
    if(e>59)d+=e/60,e%=60;
    printf("%.2d:%.2d:%.2d\n",d,e,f);
  }
  return 0;
}