#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
  int h,m,s,t;
  for(;cin>>h>>m>>s;)
    {
      if(h==-1)
	break;
      int a,b,x;
      for(int i=0;i<2;i++)
	{
	  t=7200-(h*3600+m*60+s);
	  if(i==1)
	    t*=3;
	  a=t/3600;
	  t%=3600;
	  b=t/60;
	  t%=60;
	  printf("%02d:%02d:%02d\n",a,b,t);
	}

    }
}