#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;
        cout << (s/(60*60)) << ':' << (s/60%60) << ':' << (s%60) << endl;

        s *= 3;
        cout << (s/(60*60)) << ':' << (s/60%60) << ':' << (s%60) << endl;
    }
}