def ftime x
    t, h = x.divmod 3600
    h, s = h.divmod 60
    sprintf("%02d:%02d:%02d", t, h, s)
end

while true
    line = gets.chomp
    break if line == "-1 -1 -1"

    t, h, s = line.split.map(&:to_i)
    rest = 7200 - (t * 3600 + h * 60 + s)
    rest3 = rest * 3
    puts ftime(rest)
    puts ftime(rest3)
end
