def rivers_with_station(stations):
    """For a list of MonitoringStation objects, return a set of rivers which have a monitoring station"""
  
  
    rivers = []
  
  
    for station in stations:
        rivers.append(station.river)

    
    return set(rivers)