def name_spin_sym(nElec: int) -> str:
    """Finds the suitable name (or more general: string representation) for the given amount of unpaired
    electrons. For instance 2 unpaired electrons represent a "Triplet"."""
    names = ["Singlet", "Doublet", "Triplet", "Quartet",
             "Quintet", "Sextet", "Septet", "Octet", "Nonet", "Decet"]

    if nElec < len(names):
        return names[nElec]

    if nElec % 2:
        return "S=%d" % (nElec // 2)
    else:
        return "S=%d/2" % nElec