def get_zamid_s(zamid):

    """Gets the state of a nuclide from a its z-a-m id. 1 = first excited state, 0 = ground state.
    
    Parameters
    ----------
    zamid: str
        z-a-m id of a nuclide
    """
    s = int(zamid[-1])

    return s