var body = '';
var readable = process.stdin;
readable.resume();
readable.setEncoding( 'utf-8' );
readable.on( 'data', function( chunk ) {
  body += chunk;
});
 
readable.on( 'end', function() {
  var data = body.split( '\n' );
  var output = '';
  for( var i=0; i<data.length; i++ ) {
    if( 0 != data[i] ) {  
      output += 'Case '+(i+1)+': '+data[i]+'\n';
    }
  }
  console.log( output  );
});