#include <iostream>
#include <cstdio>
using namespace std;

int hms2s(int h, int m, int s) {
    int ret = s;
    for (int i = 0; i < h; i++) {
        ret += 3600;
    }
    for (int i = 0; i < m; i++) {
        ret += 60;
    }
    return ret;
}

void printhms(int s) {
    int h = 0, m = 0;
    while (s >= 3600) {
        s -= 3600;
        h++;
    }
    while (s >= 60) {
        s -= 60;
        m++;
    }
    printf("%02d:%02d:%02d\n", h, m, s);
}

int main() {
    while (true) {
        int h, m, s;
        cin >> h >> m >> s;
        if (h == -1 && m == -1 && s == -1) {
            break;
        }
        int rest = 7200 - hms2s(h, m, s);
        printhms(rest);
        printhms(rest * 3);
    }
}