from typing import Set


def get_idx(w: str) -> Set[int]:
    """
    Return the set of indices of dashes in the given word.
    """
    ws = w.split("-")
    i = 0
    idx = set()
    for s in ws:
        i += len(s)
        idx.add(i)
    return idx