# AOJ 0074 Videotape
# Python3 2018.6.14 bal4u

while True:
	T, H, S = list(map(int, input().split()))
	if T < 0: break
	t = 7200 - (3600*T + 60*H + S)
	print('{:02d}:{:02d}:{:02d}'.format(t//3600, (t%3600)//60, t%60))
	t *= 3
	print('{:02d}:{:02d}:{:02d}'.format(t//3600, (t%3600)//60, t%60))

