#include<iostream>
using namespace std;

int main()
{
    int t, h, s;

    int sum1 = 0, sum2 = 0;

    while( cin >> t >> h >> s )
    {
        if( t == -1 && h == -1 && s == -1 )
            break;
        
        sum1 = 120 * 60 - t * 3600 - h * 60 - s;
        sum2 = sum1 * 3;

        t = sum1 / 3600;
        h = ( sum1 % 3600 ) / 60;
        s = ( sum1 % 3600 ) % 60;

        if( t < 10 )
            cout << 0 << t << ":";
        else
            cout << t << ":";
        if( h < 10 )
            cout << 0 << h << ":";
        else
            cout << h << ":";
        if( s < 10 )
            cout << 0 << s << endl;
        else
            cout << s << endl;

        t = sum2 / 3600;
        h = ( sum2 % 3600 ) / 60;
        s = ( sum2 % 3600 ) % 60;

        if( t < 10 )
            cout << 0 << t << ":";
        else
            cout << t << ":";
        if( h < 10 )
            cout << 0 << h << ":";
        else
            cout << h << ":";
        if( s < 10 )
            cout << 0 << s << endl;
        else
            cout << s << endl;
    }
    return 0;
}
