#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
using namespace std;

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    int t, h, s;
    while (cin >> t >> h >> s)
    {
        if (t == -1 && h == -1 && s == -1)
            break;

        int n = 7200 - (t * 3600 + h * 60 + s);
        int f = 3 * n;

        printf("%02d:%02d:%02d\n", n / 3600, n % 3600 / 60, n % 60);
        printf("%02d:%02d:%02d\n", f / 3600, f % 3600 / 60, f % 60);
    }
    return 0;
}
