def rivers_with_station(stations):
    """Returns a set with the names of the rivers with monitoring stations"""
    # Build empty set
    rivers = set()
    # Add the river of every station, and duplicates are removed automatically
    for station in stations:
        rivers.add(station.river)
    return rivers