#include<iostream>
#include<cstdio>
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;
    printf("%02d:%02d:%02d\n",r/3600,(r/60)%60,r%60);
    r*=3;
    printf("%02d:%02d:%02d\n",r/3600,(r/60)%60,r%60);
  }
  return 0;
}