
input_arr = []
while input = gets.to_i
	break if input < 1
	input_arr << input
end

def outCase(i, a)
	return "Case #{i}: #{a}"
end

1.upto(input_arr.length){|i|
	puts outCase(i, input_arr[(i - 1)])
}