while line = gets
t,h,s = line.split.map(&:to_i)
break if t == -1 && h == -1 && s == -1
lt = (t * 3600) + (h * 60) + s

rt = 120 * 60 - lt
rt3 = 3 * rt
printf("%02d:%02d:%02d\n",(rt / 3600),(rt / 60) % 60,rt % 60)
printf("%02d:%02d:%02d\n",rt3 / 3600, (rt3 / 60) % 60, rt3 % 60)
end
