def checker(n)
  return 1 if n==0
  (Math.log10(n)+1).to_i
end

def print_clock(t)
  h = t/3600
  m = t/60 - 60*h
  s = t - (60*60*h + 60*m)
  if checker(m) == 1
    if checker(s) == 1
      puts "0#{h}:0#{m}:0#{s}"
    else
      puts "0#{h}:0#{m}:#{s}"
    end
  else
    if checker(s) == 1
      puts "0#{h}:#{m}:0#{s}"
    else
      puts "0#{h}:#{m}:#{s}"
    end
  end
end

loop do
  h,m,s = gets.chomp.split.map(&:to_i)
  break if h == -1 && m == -1 && s == -1
  t1 = 120*60 - (h*60*60 + m*60 + s)
  t2 = 120*60 - (h*60*60 + m*60 + s)/3
  print_clock(t1)
  print_clock(t2)
end