'use strict'

const main = arg => {
 const input = arg.trim().split("\n").map(num => parseInt(num, 10));
 const result = input.filter(num => num !== 0).map((num,i) => "Case "+(i+1)+": "+num);

 console.log(result.join("\n"));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));


