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

int main(){
    int h,m,s;
    
    while(cin >> h >> m >> s){
        if(h == -1 && m == -1 && s == -1) break;
        
        int dh = 2,dm = 0,ds = 0;
        int hh,mm,ss;
        
        hh = dh - h;
        mm = dm - m;
        ss = ds - s;
        if(ss < 0){
            ss += 30;
            mm--;
        }
        if(mm < 0){
            mm += 60;
            hh--;
        }
        printf("%02d:%02d:%02d\n" ,hh ,mm, ss);
        printf("%02d:%02d:%02d\n" ,hh+1 ,mm, ss);
    }
    
    return 0;
}