#include <iostream>
#include <cstdio>
using namespace std;

int main(){
    int h,m,s,total,h1,m1,s1,total1;
    while(1){
        cin >> h >> m >> s;
        if(h == -1 && m == -1 && s == -1){
            break;
        }
        total1 = h*3600 + m*60 + s;
        total1 = 120*60 - total1;
        total1 *= 3;
        
        total = h*3600 + m*60 + s;
        total = 120*60 - total;
        h = total/3600;
        total %= 3600;
        m = total/60;
        total %= 60;
        s = total;
        
        h1 = total1/3600;
        total1 %= 3600;
        m1 = total1/60;
        total1 %= 60;
        s1 = total1;
        
        printf("%02d:%02d:%02d\n",h,m,s);
        printf("%02d:%02d:%02d\n",h1,m1,s1);
    }
}