#include <iostream>
#include <iomanip>
using namespace std;

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

  r = 2*60*60;
  while (1) {
    cin >> h >> m >> s;
    if (h==-1 && m==-1 && s==-1) break;
    r -= h*3600 + m*60 + s;
  }
  for (int i=0; i<2; i++) {
    if (i) r *= 3;
    h = r/3600;
    m = (r%3600)/60;
    s = r%60;
    cout.fill('0');
    cout << setw(2) << h << ':';
    cout << setw(2) << m << ':';
    cout << setw(2) << s << endl;
  }
  return 0;
}