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

void solve(int h, int m, int s){
    int ts = 2*60*60 - ((h * 60 + m) * 60 + s);
    if(ts < 0) throw;

    h = ts / 3600;
    m = (ts % 3600) / 60;
    s = ts % 60;
    printf("%02d:%02d:%02d\n", h, m, s);

    ts *= 3;
    h = ts / 3600;
    m = (ts % 3600) / 60;
    s = ts % 60;
    printf("%02d:%02d:%02d\n", h, m, s);
}

int main(){
    int h, m, s;
    while(cin >> h >> m >> s){
        if(h == -1 && m == -1 && s == -1) break;
        solve(h, m, s);
    }
    return 0;
}