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

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

  while (1) {
    cin >> h >> m >> s;
    if (h==-1 && m==-1 && s==-1) break;
    r = 7200 - 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;
}