#include <iostream>
#include <cstdio>

using namespace std;

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

  return ;
}

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

  return 0;
}