def main(input = STDIN)
  while (args = input.gets.split(" ").map(&:to_i)) != [-1, -1, -1]
    remain = 120 * 60 - hms_to_sec(*args)
    puts sec_to_str(remain), sec_to_str(remain * 3)
  end
end
def hms_to_sec(h, m, s)
  return (h * 60 + m) * 60 + s
end
def sec_to_str(second)
  output = []
  3.times do
    output << (second % 60).to_s.rjust(2, "0")
    second /= 60
  end
  return output.reverse.join(":")
end
main