numbers = []
while true
    number = gets.to_i
    if number == 0
        break
    else
        numbers.push(number)
    end
end

numbers.each_with_index do |number,index|
    puts "Case #{index+1}: #{number}"
end
