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