let content = '';
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', buf => {
  content += buf;
});
process.stdin.on('end', () => {
  const nums = content
    .trim()
    .split('\n')
    .map(n => parseInt(n, 10))
    .filter(n => n !== 0);
  nums.forEach((n, i) => console.log(`Case ${i + 1}: ${n}`))
});
