#include <bits/stdc++.h>
using namespace std;
int main() {
  for (;;) {
    int h, m, s;
    cin >> h >> m >> s;
    if (h == -1) return 0;
    m += h * 60;
    s += m * 60;
    s = 2 * 60 * 60 - s;
    cout << (s / (60 * 60)) << ':' << (s / 60 % 60) << ':' << (s % 60) << endl;
    s *= 3;
    cout << (s / (60 * 60)) << ':' << (s / 60 % 60) << ':' << (s % 60) << endl;
  }
}
