#include <iostream>

using namespace std;

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

    int rec=h*3600+m*60+s;
    int ans=120*60-rec;
    int ans3=ans*3;
    int a1, a2, a3;
    a1=ans/3600;
    ans-=a1*3600;
    a2=ans/60;
    ans-=a2*60;
    a3=ans;
    if(a1<10) cout << 0;
    printf("%d:", a1);
    if(a2<10) cout << 0;
    printf("%d:", a2);
    if(a3<10) cout << 0;
    printf("%d\n", a3);

    a1=ans3/3600;
    ans3-=a1*3600;
    a2=ans3/60;
    ans3-=a2*60;
    a3=ans3;
    if(a1<10) cout << 0;
    printf("%d:", a1);
    if(a2<10) cout << 0;
    printf("%d:", a2);
    if(a3<10) cout << 0;
    printf("%d\n", a3);
  }
  return 0;
}