def addzero(n):
	result = str(n)
	if n < 10: result = '0' + result
	return result

def fixtime(second):
	s = second
	T = s/3600
	s = s%3600
	M = s/60
	S = s%60
	return addzero(T)+':'+addzero(M)+':'+addzero(S)
	
while True:
	T, M, S = map(int, raw_input().split())
	if T == -1: break
	leftsecond = 7200 - T*3600 - M*60 - S
	times3 = leftsecond * 3
	print fixtime(leftsecond)
	print fixtime(times3)
