def main(argv=None):
    args = parse_args(argv)
    init_logging(args.debug)
    (iea, image) = load_input(args.input)
    answer = puzzle1(iea, image)
    logging.info('Puzzle 1: %d', answer)
    answer = puzzle2(iea, image)
    logging.info('Puzzle 2: %d', answer)
def main(argv=None):
    args = parse_args(argv)
    init_logging(args.debug)
    (iea, image) = load_input(args.input)
    answer = puzzle1(iea, image)
    logging.info('Puzzle 1: %d', answer)
    answer = puzzle2(iea, image)
    logging.info('Puzzle 2: %d', answer)