#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  int T, H, S;
  while (cin >> T >> H >> S, T != -1) {
    int rem = 2 * 3600 - T * 3600 - H * 60 - S;
    printf("%02d:%02d:%02d\n", rem / 3600, rem / 60 % 60, rem % 60);
    rem *= 3;
    printf("%02d:%02d:%02d\n", rem / 3600, rem / 60 % 60, rem % 60);
  }

  return 0;
}
