from typing import List


def parse_clist(s: str) -> List[int]:
    """
    Parse commented station list
    " 722(Brocken),5792(Zugspitze), 3987 (Potsdam)  " -> [722, 5792, 3987]
    :param s:
    :return:
    """
    stations = []
    parts = s.split(",")
    for part in parts:
        if "(" in part:
            stations.append(int(part[:part.index("(")].strip()))
        else:
            stations.append(int(part.strip()))
    return stations