function main(line) {
	var i=0
	while(line[i]!=0){
		console.log("Case " + (i+1) + ": " + line[i])
		i = i + 1
	}
}

var input = '';

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  input = input.split('\n');
  main(input);
});