'use strict';
function Main(stdin) {
????var line = stdin.split('\n');
????var result = (function(data) {
????????var tmp = [];
????????var index = 0;
????????????????while (data[index] !== 0) {
????????????????????????tmp.push('Case ' + (index + 1) + ': ' + data[index++]);
????????????????}
????????return tmp.join('\n');
????}(
????????line.map(Number)
????));
????console.log(result);
}
??
Main(require('fs').readFileSync('/dev/stdin', 'utf8'));