require 'scanf'

while true
	h,m,s = gets.scanf("%d %d %d");
	break if h == -1 && m == -1 && s == -1

	rest = 120 * 60 - h * 60 * 60 - m * 60 - s
	rest3 = rest * 3

	printf("%02d:%02d:%02d\n", rest / 3600, rest / 60 % 60, rest % 60)
	printf("%02d:%02d:%02d\n", rest3 / 3600, rest3 / 60 % 60, rest3 % 60)
end