
def sec2hms( sec )
	h = sec / (60 * 60)
	m = (sec - h * 60 * 60) / 60
	s = sec - h * 60 * 60 - m * 60  
	return h,m,s
end

def calclefttime( hms )
	
	ans = Array.new

	h = hms[ 0 ]
	m = hms[ 1 ]
	s = hms[ 2 ]

	count = h * 3600 + m * 60 + s
	left1 = 120 * 60 - count
	left2 = left1 * 3 

	hl, ml, sl = sec2hms( left1 );	ans << [ hl,ml,sl]
	hl, ml, sl = sec2hms( left2 );	ans << [ hl,ml,sl]
	return ans
end

answers = Array.new
while line = $stdin.gets
	inputtime = line.chomp.split(/\s/).map{ |i| i.to_i }
	if inputtime[ 0 ] == -1 && inputtime[ 1 ] == -1 && inputtime[ 2 ] == -1
		break
	end
	answers << calclefttime( inputtime )
end
answers.each{ |a|
	a.each{ |b|
		printf( "%02d:%02d:%02d\n", b[ 0 ], b[ 1 ], b[ 2 ] )
	}
}
