def get_chapter(exercise: str) -> str:
    """Extract chapter name from exercise name.

    :param exercise: exercise name (e.g. "1.3.1").
    :return: chapter name (e.g. "1.3").
    """
    return exercise[:-2]