#include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main(){
    int H,M,S,flg=1;
    while(cin>>H>>M>>S){
        flg=1;
        if(H==-1)break;
        S+=M*60;
        S+=H*3600;
        S=7200-S;
        continu:;
        if(S/3600<10)cout<<"0";
        cout<<S/3600<<":";
        if((S%3600)/60<10)cout<<"0";
        cout<<(S%3600)/60<<":";
        if((S%3600)%60<10)cout<<"0";
        cout<<(S%3600)%60<<endl;
        if(flg==1){
            flg=0;S*=3;goto continu;
        }
    }
    return 0;
}