
#include <iostream>
#include<string>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
    int T,H,S,t3,h3,s3,a,b,c,d,e;
    while(cin>>T>>H>>S){
        if(T==-1&&H==-1&&S==-1)break;
        a=T*3600+H*60+S;
        b=7200-a;
        c=b/3600;
        d=b%3600/60;
        e=b%3600%60;
        t3=3*b/3600;
        h3=3*b%3600/60;
        s3=3*b%3600%60;
        printf("%02d:%02d:%02d",c,d,e);
        cout<<endl;
        printf("%02d:%02d:%02d",t3,h3,s3);
        cout<<endl;
    }
          return 0;
}