#include <iostream>
using namespace std;

int main()
{
    int h,m,s,t;
    while (1)
    {
	cin >> h >> m >> s;
	if (h==-1)break;
	t = 120*60-(h*3600+m*60+s);
	printf("%02d:%02d:%02d\n",t/3600,(t/60)%60,t%60);
	t*=3;
	printf("%02d:%02d:%02d\n",t/3600,(t/60)%60,t%60);
    }
    return 0;
}