#include<iostream>
#include<ios>
using namespace std;
int h,m,s;
main()
{
    while(cin>>h>>m>>s,h>=0)
    {
        int a,b,c;
        printf("%02d:%02d:%02d\n",a=2-h-!!m,b=60-m-!!s,c=s?60-s:0);
        c*=3;
        b=b*3+c/60;c%=60;
        a=a*3+b/60;b=60;
        printf("%02d:%02d:%02d\n",a,b,c);
    }
}
