"use strict"
let input=require('fs').readFileSync('/dev/stdin','utf8');
let arr=input.split('\n');
for(let i in arr){
	if(arr[i]==='0') break;
	let n=parseInt(i)+1;
	console.log('Case ' +n+': ' + arr[i]);
}

