#!/usr/bin/ruby

def f(n)
  ("0" + n.to_s)[-2, 2]
end

def solve(t)
  s = t % 60; t /= 60
  m = t % 60; h = t / 60
  puts "#{f h}:#{f m}:#{f s}"
end

ALL = 120 * 60

while true
  h, m, s = gets.split.map{|x| x.to_i}
  if h < 0 and m < 0 and s < 0
    break
  end
  t = (h*60+m)*60+s
  solve(ALL - t)
  solve((ALL - t) * 3)
end