import re


def get_fracas_info(problem_id):
    """
    Given a problem ID, e.g. fracas_001_generalized_quantifiers,
    it returns the fracas number "001" and the section name
    "generalized_quantifiers".
    """
    info = re.findall(r'fracas_(\d\d\d)_(.+)', problem_id)
    assert info, 'Correct Fracas ID information could not be retrieved for {0}' \
      .format(problem_id)
    fracas_num, section = info[0]
    return int(fracas_num), section