class Main
  def self.run
    test_cases = read_inputs
    test_cases.each_with_index {|x, i|
      puts "Case #{i + 1}: #{x}"
    }
  end

  private

  def self.read_inputs
    test_cases = []
    while (x = gets.to_i) != 0 do
      test_cases << x
    end
    test_cases
  end
end

Main.run