loop do
    record_time=2*3600#????????§???????§???°
    time=gets.chomp.split(nil).map(&:to_i)
    break if time.all?{|x|x==-1}
    
    t=time[2]
    t+=time[1]*60
    t+=time[0]*3600
    
    #?¨??????????
    rest_of_time=record_time-t
    h=rest_of_time/3600#hour
    m=(rest_of_time%3600)/60#minute
    s=rest_of_time%60#second
    printf("%02d:%02d:%02d \n",h,m,s)
    
    #3???????????¢??????
    rest_of_time=(record_time-t)*3
    h=rest_of_time/3600#hour
    m=(rest_of_time%3600)/60#minute
    s=rest_of_time%60#second
    printf("%02d:%02d:%02d \n",h,m,s)
end