Lavidópolis is a city with 2024 neighborhoods. Lavi Dopes was elected mayor, and since he saw that there were no roads in the city, he asked Gil Bento, the monster engineer, to design the city's roads according to the following rules:
1. Any two neighborhoods are connected by at most one two-way road;
2. For any two neighborhoods, there is exactly one route from one neighborhood to another, which may pass through some intermediate neighborhoods, but never passes through the same neighborhood more than once.Mayor Lavi Dopes wants to try for re-election, but since he knows nothing about the city and only shows up during campaign times (he spent all this time stealing... I mean, thinking about math problems), he wants to find a pair of neighborhoods such that the number of roads that are part of the route connecting them is maximized among all pairs of neighborhoods. To do this, he starts asking Gil Bento various questions, all in the following manner: he chooses two of the 2024 neighborhoods, say A and B, and asks:
"Given neighborhoods A and B, how many roads are part of the route connecting A to B?"Knowing that Gil Bento always answers correctly to each question, determine the minimum number of questions that Lavi Dopes needs to ask to achieve his goal, regardless of how Gil Bento has designed the roads of Lavidópolis.