#include <iostream>
#include <cstdio>

using namespace std;

void solve(int v)
{
  int s = v/3600, t = (v/60)%60, u = v%60;
  printf("%02d:%02d:%02d\n", s, t, u);

  return ;
}

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

  while(cin>>h>>m>>s && (h+m+s) != -3){
    int t = 7200 - (h*60+m)*60+s;
    solve(t);
    solve(t*3);
  }

  return 0;
}