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