process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
    var lines = chunk.toString().split('\n');

    var x =parseInt(lines[0]);
for(i=0; i<x; i++){
    console.log("Case " + (i + 1) +": " + parseInt(lines[i + 1]));
}

});