There are 9 cities in a country. Some of them are connected by the mail flights. The number of stamps on an envelope should be the same as the number of flights needed to deliver the letter from one city to another (the itinerary used should require the least number of flights). It is known that even if two cities don’t have direct flight connections, it is always possible to send a letter from one city to another.
On New Year's Eve the Mayors of all these cities have sent each other Greeting Cards.
What’s the biggest number of stamps all of them might need?