def parse_setup(setup):
    """Parse setup lines to starting state and number of steps to process."""
    split = setup.split()
    start = split[3][0]
    steps = int(split[-2])
    return start, steps