The country Treeland consists of n cities, some pairs of them are connected with unidirectional roads. Overall there are roads in the country. We know that if we don’t take the direction of the roads into consideration, we can get from any city to any other one.
The council of the elders has recently decided to choose the capital of Treeland. Of course it should be a city of this country. The council is supposed to meet in the capital and regularly move from the capital to other cities (at this stage nobody is thinking about getting back to the capital from these cities). For that reason if city a is chosen a capital, then all roads must be oriented so that if we move along them, we can get from city a to any other city. For that some roads may have to be inversed.
Help the elders to choose the capital so that they have to inverse the minimum number of roads in the country.
The first input line contains integer — the number of cities in Treeland. Next lines contain the descriptions of the roads, one road per line. A road is described by a pair of integers — the numbers of cities, connected by that road. The road is oriented from city to city . You can consider cities in Treeland indexed from to .
In the first line print the minimum number of roads to be inversed if the capital is chosen optimally. In the second line print all possible ways to choose the capital — a sequence of indexes of cities in the increasing order.