def rivers_with_station(stations):
    """receives list of station obhjects and returns a list of names of rivers that have at least one station on"""
    rivers = set()
    for station in stations:
        rivers.add(station.river)
    return rivers