'use strict';
(function(stdin) {
  //declare function

  //declare variable
  var inputs = stdin.toString().trim().split('\n');
  var EOF = '0';
  //main
  (function(array) {
    for (var i = 0, len = array.length; i < len; i++) {
      console.log('Case', (i + 1) + ':', array[i]);
    }
  })(inputs.slice(0, inputs.indexOf(EOF)));

  //display
  //console.log(inputs);
})(require('fs').readFileSync('/dev/stdin', 'utf8'));