#include <bits/stdc++.h>
using namespace std;
int h, m, s;
int main() {
  while (cin >> h >> m >> s, h >= 0) {
    int a, b, c;
    printf("%02d:%02d:%02d\n", a = 2 - h - (m || s), b = 60 - m - !!s,
           c = s ? 60 - s : 0);
    c *= 3;
    b = b * 3 + c / 60;
    c %= 60;
    a = a * 3 + b / 60;
    b %= 60;
    printf("%02d:%02d:%02d\n", a, b, c);
  }
}
