#include<iostream>
int main(){for(int a,b,c,d,e,f;std::cin>>a>>b>>c;printf("%.2d:%.2d:%.2d\n",d,e,f)){if(a==-1)break;f=-c,e=-b,d=2-a;if(f<0)f+=60,e--;if(e<0)e+=60,d--;printf("%.2d:%.2d:%.2d\n",d,e,f);f*=3,e*=3,d*=3;if(f>59)e+=f/60,f%=60;if(e>59)d+=e/60,e%=60;}}