#!/usr/bin/env ruby

index = 0
numbers = []

loop do
    numbers[index] = gets.chomp.to_i
    if numbers[index] != 0 then
        index += 1
    else
        break
    end
end

for i in 0...index do
    puts "Case #{i + 1}: #{numbers[i]}"
end
