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

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