#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

int main()
{
    for(;;){
        int h, m, s;
        cin >> h >> m >> s;
        if(h == -1)
            return 0;

        m += h * 60;
        s += m * 60;

        s = 2 * 60 * 60 - s;
        printf("%02d:%02d:%02d\n", s/60/60, s/60%60, s%60);

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