/**
 * @fileOverview Google Code Jam template for NodeJS.
 *
 * How to run this script:
 *
 * 1. Install NodeJS (https://nodejs.org)
 * 2. npm install underscore
 * 3. node index.js < data.in > data.out
 */

'use strict';

var _ = require('underscore');

/**
 * Solve a test case.
 *
 * @param {...*} args Parameters needed by test case.
 */
var solve = function () {
  var res;

  return res;
};

var main = function (input) {
  var id,
      numTests = input.nextNumber();

  for (id = 1; id <= numTests; ++id) {
    console.log('Case #' + id + ': ' + solve(
      // Put parameters needed by test case here.
      input.nextString()
    ));
  }
};

var Input = function (string) {
  var idx = 0,
      space = /\s+/,
      strings = string.split('\n'),
      len = strings.length;

  var toNumber = function (obj) {
    console.assert(_.isFinite(+obj),
                   'Cannot convert "' + obj + '" into number.');

    return +obj;
  };

  this.nextString = function () {
    console.assert(idx < len, 'No more input.');

    return strings[idx++];
  };

  this.nextStringArray = function (sep) {
    return this.nextString().split(sep || space);
  };

  this.nextNumber = function () {
    return toNumber(this.nextString());
  };

  this.nextNumberArray = function (sep) {
    return this.nextStringArray(sep).map(toNumber);
  };
};

(function init() {
  var string = '';

  process.stdin.setEncoding('utf8');

  process.stdin.on('readable', function () {
    string += process.stdin.read();
  });

  process.stdin.once('end', function () {
    main(new Input(string));
  });
}());

/**
 * @fileOverview Google Code Jam template for NodeJS.
 *
 * How to run:
 *
 * 1. Install NodeJS (https://nodejs.org)
 * 2. Go to the directory of this source
 * 3. Run `npm install --production`
 * 4. Run `node index.js < data.in > data.out`
 */

'use strict';

var _ = require('underscore');

/**
 * Solve a test case.
 *
 * @param {...*} args Parameters needed by test case.
 */
var solve = function () {
  var res;

  return res;
};

var main = function (input) {
  var id,
      numTests = input.nextNumber();

  for (id = 1; id <= numTests; ++id) {
    console.log('Case #' + id + ': ' + solve(
      // Put parameters needed by test case here.
      input.nextString()
    ));
  }
};

var Input = function (string) {
  var idx = 0,
      space = /\s+/,
      strings = string.split('\n'),
      len = strings.length;

  var toNumber = function (obj) {
    console.assert(_.isFinite(+obj),
                   'Cannot convert "' + obj + '" into number.');

    return +obj;
  };

  this.nextString = function () {
    console.assert(idx < len, 'No more input.');

    return strings[idx++];
  };

  this.nextStringArray = function (sep) {
    return this.nextString().split(sep || space);
  };

  this.nextNumber = function () {
    return toNumber(this.nextString());
  };

  this.nextNumberArray = function (sep) {
    return this.nextStringArray(sep).map(toNumber);
  };
};

(function init() {
  var string = '';

  process.stdin.setEncoding('utf8');

  process.stdin.on('readable', function () {
    string += process.stdin.read();
  });

  process.stdin.once('end', function () {
    main(new Input(string));
  });
}());

Update instructions for running script.