#include <bits/stdc++.h>
using namespace std;
int main() {
  int h, m, s, e = 2 * 60 * 60, r;
  while (true) {
    cin >> h >> m >> s;
    if (h == -1 && m == -1 && s == -1) break;
    e -= 60 * 60 * h;
    e -= 60 * m;
    e -= s;
    r = e * 3;
    h = e / 3600;
    e -= h * 3600;
    m = e / 60;
    e -= m * 60;
    s = e;
    cout << "0" << h << ":";
    if (m < 10) cout << "0";
    cout << m << ":";
    if (s < 10) cout << "0";
    cout << s << endl;
    h = r / 3600;
    r -= h * 3600;
    m = r / 60;
    r -= m * 60;
    s = r;
    cout << "0" << h << ":";
    if (m < 10) cout << "0";
    cout << m << ":";
    if (s < 10) cout << "0";
    cout << s << endl;
  }
  return 0;
}
