#include <bits/stdc++.h>
using namespace std;
int main() {
  int h, m, s;
  while (1) {
    cin >> h >> m >> s;
    if (h == -1 && m == -1 && s == -1) break;
    s = 60 - s;
    m = 60 - m;
    h = 1 - h;
    if (s == 60) {
      s = 0;
    }
    if (m == 60) {
      m = 0;
    }
    printf("%02d:%02d:%02d\n", h, m, s);
    int hms = 3 * (h * 3600 + m * 60 + s);
    h = hms / 3600;
    hms -= 3600 * h;
    m = hms / 60;
    hms -= 60 * m;
    s = hms;
    printf("%02d:%02d:%02d\n", h, m, s);
  }
}
