import re


def get_ballot_type(s): 
    """Find ballot type for descriptive type index
    Args: 
        s (str): index string. 
    Returns: 
        Str: ballot type "A" or "V"
    """

    if re.search('mail|absent|vbm',s,flags=re.IGNORECASE):    
        ballot_type='A'
    # if s is not a mail-in ballot
    else:
        ballot_type='V'
    return(ballot_type)