const input = require('fs').readFileSync('/dev/stdin', 'UTF-8');

const printTestCases = input => {
  const arr = input.split(`\n`).map(v => Number(v));
  arr.forEach((val, index) => {
    if (val !== 0) return console.log(`Case ${index + 1}: ${val}`);
  });
};

printTestCases(input);

