#include<iostream>
using namespace std;

int main()
{
    int h,m,s;
    while(cin >> h >> m >> s)
    {
        if(h==-1&&m==-1&&s==-1)break;
        int resth=0,restm=0,rests= 120*60;
        int resth3,restm3,rests3;
        rests -= (h*60*60 + m*60 + s);
        rests3 = rests*3;
        resth = rests/3600;
        restm = (rests - resth*3600)/60;
        rests = rests % 60;
        resth3 = rests3 / 3600;
        restm3 = (rests3 - resth3*3600)/60;
        rests3 = rests3 % 60;
        cout <<resth<<":"<<restm<<":"<<rests<<endl;
        cout <<resth3<<":"<<restm3<<":"<<rests3<<endl;
    }
    return 0;
}