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