#include <bits/stdc++.h>
using namespace std;
int main(void) {
  while (1) {
    int h, m, s;
    cin >> h >> m >> s;
    if (s == -1 && m == -1 && h == -1) break;
    int tape1 = 120 * 60;
    int tape2 = 120 * 60 * 3;
    tape1 -= h * 3600 + m * 60 + s;
    tape2 -= h * 3600 + m * 60 + s;
    tape2 /= 3;
    cout << tape1 / 3600 / 10 << tape1 / 3600 % 10 << ":"
         << (tape1 % 3600) / 60 / 10 << (tape1 % 3600) / 60 % 10 << ":"
         << (tape1 % 3600) % 60 / 10 << (tape1 % 3600) % 60 % 10 << endl;
    cout << tape2 / 3600 / 10 << tape2 / 3600 % 10 << ":"
         << (tape2 % 3600) / 60 / 10 << (tape2 % 3600) / 60 % 10 << ":"
         << (tape2 % 3600) % 60 / 10 << (tape2 % 3600) % 60 % 10 << endl;
  }
}
