In Republic of JOI, there are N airports numbered from 0 to N−1. There are N−1 airline routes numbered from 0 to N−2. The airline route i (0≤i≤N−2) connects the airport U_i and the airport V_i bidirectionally. It is possible to travel from any airport to any other airport by connecting several airline routes. For every airport, there are at most 3 airline routes connecting it with another airport.
Benjamin is planning to take a trip in Republic of JOI. On the last day of the trip, he wants to arrive at the airport where the hot spring is located. The amusement park is located at the airport x, and the hot spring is located at the airport y. Since Benjamin does not know anything about the airline routes, he will communicate with Ali, a staff of the airplane company. Benjamin wants to know the minimum number of airline routes he has to take to travel from the airport where the amusement park is located to the airport where the hot spring is located. Ali knows information of the airplane routes. But Benjamin does not know which airline routes he has to take.
Write programs which implement the strategy of Ali, a staff of the airplane company, and the strategy of Benjamin, a traveler. Note that in Step 2, Benjamin can get the ID codes X, Y of the airports where the amusement park and the hot spring are located. However, Benjamin cannot get the airport numbers x, y.
