A KML airline operates flights between several cities in such a way that from one city, you cannot directly reach more than three other cities. However, with at most one layover, you can get from anywhere to anywhere. What is the maximum number of cities between which the planes operate?