#include<iostream>
#include<string>
#include<stdio.h>
#include<cstdio>
#include<math.h>
using namespace std;
int main(){
    int S,t,h,s,a,b,c,remain,remain2;
    while(1){
        cin>>t>>h>>s;
        if(t==-1 && h==-1 && s==-1){
            break;
        }
        S=7200;
        remain=S-(t*3600+h*60+s);
        a=remain/3600;
        b=remain/60-a*60;
        c=remain%60;
        printf("%02d:%02d:%02d",a,b,c);
        cout<<endl;
        remain2=remain*3;
        a=remain2/3600;
        b=remain2/60-a*60;
        c=remain2%60;
        printf("%02d:%02d:%02d",a,b,c);
        cout<<endl;
    }
    return 0;
}