There are streets of all sizes in the city, and each street has some teams with their own leaders and names. Each street has a most powerful team, and the leader of the team will become the street leader. If each team obeys the leader, then the team leader will obey the street leader's orders.