#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
string Change(int);
int main(){
  int h,m,s,ans,ans2,h1,m1,s1,h2,m2,s2;
  string str1,str2;
  while(1){
    cin >> h >> m >> s;
    if(h==-1&&m==-1&&s==-1) break;
    ans=7200-(h*3600+m*60+s);
    ans2=ans*3;
    h1=ans/3600;
    ans%=3600;
    m1=ans/60;
    ans%=60;
    s1=ans;
    str1=Change(h1)+':'+Change(m1)+':'+Change(s1);
    h2=ans2/3600;
    ans2%=3600;
    m2=ans2/60;
    ans2%=60;
    s2=ans2;
    str2=Change(h2)+':'+Change(m2)+':'+Change(s2);
    cout << str1 << endl;
    cout << str2 << endl;
  }
  return 0;
}
string Change(int x){
  int flag=0;
  string ret;
  if(x/10==0) flag=1;
  if(x==0) flag=2;
  while(x){
    ret+=(x%10+'0');
    x/=10;
  }
  reverse(ret.begin(),ret.end());
  if(flag==1) ret='0'+ret;
  if(flag==2) ret="00";
  return ret;
}