#include <bits/stdc++.h>
using namespace std;
void solve(long long t) {
  cout << "0" << (long long)(t / 3600) << ":";
  long long u = t % 3600;
  if (u / 60 >= 10)
    cout << u / 60 << ":";
  else
    cout << "0" << u / 60 << ":";
  u %= 60;
  if (u >= 10)
    cout << u << endl;
  else
    cout << "0" << u << endl;
  return;
}
int main() {
  int h, m, s;
  while (cin >> h >> m >> s && (h + m + s) != -3) {
    long long t = 7200 - (h * 60 + m) * 60 + s;
    solve(t);
    solve(t * 3);
  }
  return 0;
}
