#include <bits/stdc++.h>
using namespace std;
void HMS(int tm) {
  int h, m, s;
  h = tm / 3600;
  m = (tm - h * 3600) / 60;
  s = tm % 60;
  cout << setw(2) << setfill('0') << h << ":";
  cout << setw(2) << setfill('0') << m << ":";
  cout << setw(2) << setfill('0') << s << endl;
}
int main() {
  int h, m, s;
  int tm;
  while (cin >> h >> m >> s, (h + 1) | (m + 1) | (s + 1)) {
    tm = h * 60 * 60 + m * 60 + s;
    int norm_rest = 2 * 60 * 60 - tm;
    int tri_rest = 2 * 60 * 60 - ceil((float)tm / 3);
    HMS(norm_rest);
    HMS(tri_rest);
  }
  return 0;
}
