#include <iostream>
#include <vector>
#include <list>
#include <algorithm>
#include <string>
#include <sstream>
#include <stack>
#include <iomanip>
#include <numeric>
#include <queue>
#include <climits>
#include <set>
#include <complex>
#include <cmath>
#include <cstring>
#include <map>
using namespace std;
using ll = long long;
#define MOD 1000000007
#define INF 1LL << 59

const int maxT = 3600 * 2;
int main()
{
    //std::ios::sync_with_stdio(false);
    //std::cin.tie(0);
    //cout << fixed << setprecision(7);

    int T, H, S;
    while (cin >> T >> H >> S)
    {
        if (T == -1 && H == -1 && S == -1)
            break;
        int seconds = 3600 * T + 60 * H + S;
        int sa = maxT - seconds;

        cout << setfill('0') << right << setw(2) << sa / 3600 << ":";
        cout << setfill('0') << right << setw(2) << (sa % 3600) / 60 << ":";
        cout << setfill('0') << right << setw(2) << (sa % 3600) % 60 << endl;

        sa *= 3;
        cout << setfill('0') << right << setw(2) << sa / 3600 << ":";
        cout << setfill('0') << right << setw(2) << (sa % 3600) / 60 << ":";
        cout << setfill('0') << right << setw(2) << (sa % 3600) % 60 << endl;
    }
    return 0;
}
