"use strict";
(function (){
    var s = require("fs").readFileSync("/dev/stdin", "utf8");
    var ary=s.split('\n').map(Number);
    for (var i=0; i<ary.length; i++){
	if (ary[i]===0){
	    break;
	}
	console.log("Case %d: %d",i+1, ary[i]);
    }
})();
