Hockey in Ural
To promote hockey and to improve the skill of the Ural hockey teams, the Ural tournament was organised. hockey teams from the cities of the Urals were invited to participate in the tournament.
After the first two rounds, where in each round each team played one match, it turned out that there were too many teams. The organisers of the tournament decided to allow only teams to continue participation, no two of which have met in the first two rounds.
Write a program that finds a set of teams that satisfies the conditions, or prints a message that this cannot be done. If there are several solutions, print any of them.
Input
The first line contains number is even). The next lines give the description of all passed matches. The description of each match consists of two positive integers not greater than — the numbers of the teams that played in the match. The first of them correspond to the matches of the first round, the rest correspond to the matches of the second round.
The last line contains one integer .
It is guaranteed that each team played exactly two matches: one in the first round and one in the second.
Output
Print either a single number if there is no solution, or different numbers — the numbers of selected teams.