while gets
  x, y, z = $_.split.map(&:to_i)
  break if x==-1&&x==y&&x==z
  s = 7200 - x*3600 - y*60 - z
  puts "%02d:%02d:%02d"%[s/3600,s%3600/60,s%60]
  s *=3
  puts "%02d:%02d:%02d"%[s/3600,s%3600/60,s%60]
end