#include <iostream>

using namespace std;

typedef long long ll;

void solve(ll t)
{
  cout << "0" << (ll)(t/3600) << ":";
  ll u = t%3600;
  if(u/60 >= 10) cout << u/60 << ":";
  else cout << "0" << u/60 << ":";
  
  u %= 60;
  if(u >= 10) cout << u << endl;
  else cout << "0" << u << endl;

  return ;
}

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

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

  return 0;
}