#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;
        g = 7200 - g;
        printf("%02d:%02d:%02d\n",g/3600,g%3600/60,g%60);
        printf("%02d:%02d:%02d\n",(g*3)/3600,(g*3)%3600/60,(g*3)%60);
    }
    return 0;
}