readlines.map(&:chomp).each{|input|
  t, h, s = input.split.map(&:to_i)
  break if t == -1 && h == -1 && s == -1
  tape = 120 * 60
  tape -= t * 3600 + h * 60 + s
  tape3 = tape * 3
  s = tape % 60
  h = ((tape - s) / 60) % 60
  t = (tape - s - h * 60) / 3600
  puts "%02d:%02d:%02d" % [t, h, s]
  s = tape3 % 60
  h = ((tape3 - s) / 60) % 60
  t = (tape3 - s - h * 60) / 3600
  puts "%02d:%02d:%02d" % [t, h, s]
}