#include <bits/stdc++.h>
using namespace std;
void Counter(int t, int *c) {
  int h, m, s;
  string r;
  h = t / 3600;
  m = (t - 3600 * h) / 60;
  s = t - 3600 * h - 60 * m;
  c[0] = h;
  c[1] = m;
  c[2] = s;
}
int main() {
  int h, m, s, t;
  int c[3];
  while (cin >> h >> m >> s, h + 1 || m + 1 || s + 1) {
    t = h * 3600 + m * 60 + s;
  }
  Counter(120 * 60 - t, c);
  cout << setw(2) << setfill('0') << c[0] << ":" << setw(2) << c[1] << ":"
       << setw(2) << c[2] << endl;
  Counter((120 * 60 - t) * 3, c);
  cout << setw(2) << setfill('0') << c[0] << ":" << setw(2) << c[1] << ":"
       << setw(2) << c[2] << endl;
  return 0;
}
