#include <iostream>
#include <iomanip>

using namespace std;

int main(){
        int h,m,s;
        cin >> h >> m >> s;
        while(h>=0){
                int pass = h*3600+m*60+s;
                int last = 120*60-pass;
                cout << setw(2) << setfill('0') << last/3600 << ':' << setw(2) << setfill('0') << last%3600/60 << ':' << setw(2) << setfill('0') << last%60 << endl;
                last *= 3;
                cout << setw(2) << setfill('0') << last/3600 << ':' << setw(2) << setfill('0') << last%3600/60 << ':' << setw(2) << setfill('0') << last%60 << endl;
                cin >> h >> m >> s;
        }   
}