#include <iostream>
using namespace std;

int main(){
    int t, h, s;
    while(cin >> t >> h >> s){
        if(t == -1) break;
        int temp = t * 3600 + h * 60 + s;
        temp = 7200 - temp;
        t = temp/3600;
        h = (temp%3600)/60;
        s = temp%60;
        cout << (t/10) << t%10 << ":" << h/10 << h%10 << ":" << s/10 << s%10 << endl;
        temp *= 3;
        t = temp/3600;
        h = (temp%3600)/60;
        s = temp%60;
        cout << (t/10) << t%10 << ":" << h/10 << h%10 << ":" << s/10 << s%10 << endl;
    }
    return 0;
}