loop do
  h1, m1, s1 = gets.split.map(&:to_i)
  
  break if h1 == -1
  
  tmp = 7200 - (h1 * 3600 + m1 * 60 + s1)
  
  q, s2 = tmp.divmod(60)
  h2, m2 = q.divmod(60)
  puts "%02d:%02d:%02d" % [h2, m2, s2]
  
  q, s2 = (tmp * 3).divmod(60)
  h2, m2 = q.divmod(60)
  puts "%02d:%02d:%02d" % [h2, m2, s2]
end