 #include<iostream>
 #include<stdio.h>
 #include<string>
 #include<math.h>
 #include<iomanip>
 #include<algorithm>
 #include<string.h>
 #include<cctype>
 #include<map>
 #include<set>
 #include<vector>
 #include<sstream>
 #include<stack>
 #include<queue>
 #include<deque>
 #include<functional>
 #include<utility>
 
 using namespace std;
 
 int main()
 {
   int T,H,S;
   while(cin>>T>>H>>S&&(T!=-1||H!=-1||S!=-1))
   {
     int kk=3600*T+60*H+S;
     kk=7200-kk;
     int kk3=kk*3;
     string s;
     int a=kk/3600;
     int c=kk%60;
     int b=(kk-a*3600)/60;
     printf("%02d:%02d:%02d\n",a,b,c);         
     int d=kk3/3600;
     int f=kk3%60;
     int e=(kk3-d*3600)/60;
     printf("%02d:%02d:%02d\n",d,e,f);             
   }
   //while(1);
   return 0; 
 }

 
  