#include<iostream>
#include<string.h>
#include<vector>
#include<list>
#include<stdio.h>
#include<math.h>
#include<iomanip>
#define range(i,a,b) for(int i = (a); i < (b); i++)
#define rep(i,b) range(i,0,b)
#define debug(x) cout << "debug " << x << endl;
using namespace std;

int main(){
    int h, m, s, sum;

    while(cin >> h >> m >> s, s != -1){
        sum = (h * 60 + m) * 60 + s;
        sum -= 2 * 60 * 60;
        sum *= -1;
        rep(i,2){
            h = sum / 60 / 60;
            m = (sum - h * 60 * 60) / 60;
            s = sum - (h * 60 + m) * 60;
            sum *= 3;
            cout << setfill('0');
            cout << setw(2) << h << ':' << setw(2) << m << ':' << setw(2) <<  s << endl;
        }
    }
}