def rivers_with_stations(stations): 
    """Given a list of MonitoringStation objects, returns a sorted list of names 
    of rivers with at least 1 monitoring station"""

    ans = set([])
    for station in stations: 
        ans.add(station.river)
    ans = sorted(ans)
    return ans