#include<cstdio>
#include<cstring>
using namespace std;
int main(){
    int a,b,c;
    while(1){
        scanf("%d%d%d",&a,&b,&c);
        if(a == -1 && b == -1 && c == -1)break;
        int g=0;
        g = a*3600+b*60+c;
        int g1,g2;

        g1 = 7200 - g;
        g2 = 7200 - (g/3);

        int ans[3]={0};
        for(;;){
            if(g1 == 0){
                printf("%02d:%02d:%02d\n",ans[0],ans[1],ans[2]);
                break;
            }
            if(g1 >= 3600){
                ans[0]++;
                g1 = g1-3600;
            }
            else if(g1 >= 60){
                ans[1]++;
                g1 = g1-60;
            }
            else {
                ans[2]++;
                g1--;
            }
        }
        memset(ans,0,sizeof(ans));
        for(;;){
            if(g2 == 0){
                printf("%02d:%02d:%02d\n",ans[0],ans[1],ans[2]);
                break;
            }
            if(g2 >= 3600){
                ans[0]++;
                g2 = g2-3600;
            }
            else if(g2 >= 60){
                ans[1]++;
                g2 = g2-60;
            }
            else {
                ans[2]++;
                g2--;
            }
        }
    }
    return 0;
}