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

int main(){

  int h,m,s,x,y,z;

  while(true){
    cin >> h >> m >> s;
    if(h == -1 && m == -1 && s == -1) break;

    s += (h*3600) + (m*60);

    s = 7200 - s;
    z = s * 3;

    h = s/3600;
    m = (s%3600)/60;
    s = (s%3600)%60;

    x = z/3600;
    y = (z%3600)/60;
    z = (z%3600)%60;

    printf("%02d:%02d:%02d\n",h,m,s);
    printf("%02d:%02d:%02d\n",x,y,z);
  }
}