#include <iostream>
#include <cstdio>
using namespace std;

int main() {
  while(1){
    int h,m,s;
    cin >> h >> m >>s;
    if(h==-1 && m==-1 && s==-1) break;
    int rec = 120*60-(60*60*h+m*60+s);
    h = rec/(60*60), rec%=60*60;
    m = rec/(60), rec%=60;
    s = rec;
    printf("%02d:%02d:%02d\n",h,m,s);
    rec = 3*(60*60*h+m*60+s);
    h = rec/(60*60), rec%=60*60;
    m = rec/(60), rec%=60;
    s = rec;
    printf("%02d:%02d:%02d\n",h,m,s);
  }
  return 0;
}