#include<iostream>
#include<cstdio>
using namespace std;
void output(int n){
    int m=3600;
    bool f=false;
    for(int i=0;i<3;i++){
        if(f)cout<<":";
        printf("%.2d",n/m);
        n%=m;
        m/=60;
        f=true;
    }
}
int main(){
    int t,m,s;
    while(cin>>t>>m>>s,t!=-1){
        int sum=2*3600-t*3600-m*60-s,sum3;
        sum3=sum*3;
        output(sum);
        cout<<endl;
        output(sum3);
        cout<<endl;
    }
    return 0;
}