while True:
	h,m,s = map(int, raw_input().split())
	if h + m + s == -3: break
	ans = 120 * 60 - s - m * 60 - h * 3600

	s = ans % 60
	ans -= s
	h = ans / 3600
	ans -= h * 3600
	m = ans / 60

	h2 = 0
	m2 = 0
	s2 = s * 3
	if s2 > 60:
		m2 += s2 / 60
		s2 = s2 % 60
	m2 += m * 3
	if m2 > 60:
		h2 += m2 / 60
		m2 = m2 % 60
	h2 += h * 3

	print ":".join(map(str,['%02d' % h,'%02d' % m,'%02d' % s]))
	print ":".join(map(str,['%02d' % h2,'%02d' % m2,'%02d' % s2]))