#include<iostream>
using namespace std;
int main(){
  int h,m,s;
  while(cin>>h>>m>>s,h+1){
    int left=60*120-h*3600-m*60-s;
    if(left/3600<10)cout<<0;
    cout<<left/3600<<':';
    if(left/60%60<10)cout<<0;
    cout<<left/60%60<<':';
    if(left%60<10)cout<<0;
    cout<<left%60<<endl;
    left*=3;
 if(left/3600<10)cout<<0;
    cout<<left/3600<<':';
    if(left/60%60<10)cout<<0;
    cout<<left/60%60<<':';
    if(left%60<10)cout<<0;
    cout<<left%60<<endl;

  }
}