#include <iostream>

using namespace std;

int main() {
  while (true) {
    int t, h, s;
    cin >> t >> h >> s;

    if (t == -1)
      break;

    int sum = 7200 - ((t * 60 + h) * 60 + s);
    printf("%02d:%02d:%02d\n", sum / 3600, (sum % 3600) / 60, (sum % 60));
    sum *= 3;
    printf("%02d:%02d:%02d\n", sum / 3600, (sum % 3600) / 60, (sum % 60));
  }
}
