process.stdin.resume();
var x = '';
process.stdin.setEncoding('utf-8');
process.stdin.on('data', function (input) {
    x += input;
});

process.stdin.on('end', function () {
    var xArray = x.split('\n');
    var xNumArray = xArray.map(function (n) {
        return parseInt(n);
    });
    var output = [];
    for(var i = 0; i < xNumArray.length; i++) {
        if(0 != xNumArray[i]) {
            output.push('Case ' + (i + 1) + ': ' + xNumArray[i]);
        }
    }
    console.log(output.join('\n'));
});