#include <cstdio>
using namespace std;
int main(){
    int h, m, s;
    while(1){
        scanf("%d %d %d", &h, &m, &s);
        if( h+m+s < 0 ) return 0;
        int left = 7200 - h*3600 - m*60 - s;
        printf("%02d:%02d:%02d\n%02d:%02d:%02d\n",
                left/3600, (left/60)%60, left%60,
                left/1200, (left/20)%60, left*3%60);
    }
    return 0;
}