#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c;
  while (cin >> a >> b >> c, a != -1) {
    int time = (a * 60 + b) * 60 + c;
    time = (120 * 60) - time;
    a = time / 3600;
    b = (time - a * 3600) / 60;
    c = time - a * 3600 - b * 60;
    cout << a << ":";
    cout << b << ":";
    cout << c << endl;
    time *= 3;
    a = time / 3600;
    b = (time - a * 3600) / 60;
    c = time - a * 3600 - b * 60;
    cout << a << ":";
    cout << b << ":";
    cout << c << endl;
  }
  return 0;
}
