const input = require('fs').readFileSync('/dev/stdin', 'utf8');
const lines = input.trim().split('\n');
let counter = 1;

while (line = lines.shift()) {
    if (line !== '0') {
        console.log('Case ', counter, ': ', line);
        counter += 1;
    }
} 
