#include <iostream>
#include <cstdio>
int main(void){
    int h,m,s,h3,m3,s3;
    int t,t3;
    while(std::cin>>h>>m>>s,h!=-1||m!=-1||s!=-1){
        t=7200;
        t=t-(h*3600+m*60+s);
        t3=t*3;
        h=t/3600;t%=3600;h3=t3/3600;t3%=3600;
        m=t/60;t%=60;m3=t3/60;t3%=60;
        s=t;s3=t3;
        printf("%02d:%02d:%02d\n",h,m,s);
        printf("%02d:%02d:%02d\n",h3,m3,s3);
    }
    return 0;
}