tmp = []
cou = 1
while cou != 0
  i = gets.chomp
  tmp.push(i)
  cou = i.to_i
end
tmp.delete(tmp[-1])
tmpcount = 1
i = 0
num_of_case=1
loop do
  puts "Case #{num_of_case}: #{tmp[i]}"
  i += 1
  num_of_case += 1
  if tmp[i]==nil
    break
  end
end