var input = function(){
  return input= require('fs').readFileSync('/dev/stdin', 'utf8').split("\n").map(Number);
  };

var increment = function(x)
{
  return x+1;
}

var out = function(counter,x)
{
  console.log("Case " + increment(counter) + ": " + x );
  return x;
}

var Arr=input()
.forEach(function(element,index)
{
  if (element != 0)
  {
    out(index,element);
  }
}
);