#!/usr/bin/env python
"""
Problem description.
"""

from __future__ import division
import sys


class PheasantSolver(object):
    def __init__(self, output_file=sys.stdout):
        self.__output_file = output_file

    def solve(self, instances):
        solutions = []
        for instance in instances:
            solutions.append(self.solve_instance(instance))

        for i, solution in enumerate(solutions, start=1):
            newline_needed = True if i != len(solutions) else False
            self.__output_file.write("Case #{0}: {1}{2}".format(i, solution, "\n" if newline_needed else ""))

    def solve_instance(self, instance):
        """
        Where the magic happens.
        This method should return the solution (as a string) of the given instance.
        """
        return "Not Done!!!"


class PheasantInstance(object):
    def __init__(self):
        pass


class PheasantParser(object):
    def __init__(self):
        data = sys.stdin.readlines()
        data = map(lambda s: s.strip(), data)

        self.amount_samples = int(data[0][0])
        self.data = data[1:]
        self.instances = []

        self.parse()

    def parse(self):
        """
        This method should populate the instances list.
        """
        for line in self.data:
            row = line.strip()
            instance = PheasantInstance()
            self.instances.append(instance)

    def get_data_as_type(self, type_):
        return map(lambda row: map(lambda element: type_(element), row), self.data)


if __name__ == "__main__":
    parser = PheasantParser()
    solver = PheasantSolver()
    solver.solve(parser.instances)
#!/usr/bin/env python
"""
Problem description.
"""

from __future__ import division
import sys


class PheasantSolver(object):
    def __init__(self, output_file=sys.stdout):
        self.__output_file = output_file

    def solve(self, instances):
        solutions = []
        for instance in instances:
            solutions.append(self.solve_instance(instance))

        for i, solution in enumerate(solutions, start=1):
            newline_needed = True if i != len(solutions) else False
            self.__output_file.write("Case #{0}: {1}{2}".format(i, solution, "\n" if newline_needed else ""))

    def solve_instance(self, instance):
        """
        Where the magic happens.
        This method should return the solution (as a string) of the given instance.
        """
        return "Not Done!!!"


class PheasantInstance(object):
    def __init__(self):
        pass


class PheasantParser(object):
    def __init__(self):
        data = sys.stdin.readlines()
        data = map(lambda s: s.strip(), data)

        self.amount_samples = int(data[0][0])
        self.data = data[1:]
        self.instances = []

        self.parse()

    def parse(self):
        """
        This method should populate the instances list.
        """
        for line in self.data:
            row = line.strip()
            instance = PheasantInstance()
            self.instances.append(instance)

    def get_data_as_type(self, type_):
        return map(lambda row: map(lambda element: type_(element), row), self.data)


if __name__ == "__main__":
    parser = PheasantParser()
    solver = PheasantSolver()
    solver.solve(parser.instances)
#!/usr/bin/env python Problem description. #{0}: {1}{2}".format(i, solution, "\n" if newline_needed else "")) Where the magic happens.         This method should return the solution (as a string) of the given instance. This method should populate the instances list.