Problem: The nation of Panel holds an annual show called The Number Games, where each district in the nation will be represented by one contestant.
The nation has districts numbered from to , each district has exactly one path connecting it to every other district. The number of fans of a contestant from district is equal to .
This year, the president decided to reduce the costs. He wants to remove contestants from the games. However, the districts of the removed contestants will be furious and will not allow anyone to cross through their districts.
The president wants to ensure that all remaining contestants are from districts that can be reached from one another. He also wishes to maximize the total number of fans of the participating contestants.
Which contestants should the president remove?
Input Format: The first line of input contains two integers and () — the number of districts in Panel, and the number of contestants the president wishes to remove, respectively.
The next lines each contains two integers and (, ), that describe a road that connects two different districts and in the nation. It is guaranteed that there is exactly one path between every two districts.
Output Format: Print space-separated integers: the numbers of the districts of which the contestants should be removed, in increasing order of district number.
Note: In the first sample, the maximum possible total number of fans is . We can achieve it by removing the contestants of the districts 1, 3, and 4.