Prince Potemkin is known for his fake villages, put up in a hurry to impress visiting dignitaries. He leads a delegation along a closed route through his territory, and at every suitable site a troupe of actors raises a portable village and plays its inhabitants. As soon as the delegation moves on, the actors take the village apart and run ahead to the next site of the route.
Choosing the route takes some care. Members of the delegation sometimes leave the planned route for a short inspection trip, and the trick fails the moment they return to a site they have already seen, because they would find an empty field where a village stood. The route also has to pass through at least four sites to make an impression.
You are given a map of the territory, that is the list of two way direct roads between the suitable sites. An elaborate system of overpasses carries one road over another, so the dignitaries cannot change roads anywhere except at the two ends of a road.
Find a sequence s1,…,sm of sites such that:
The first line has two integers N and R (0≤N≤1000, 0≤R≤100000), the number of sites and the number of direct roads. The sites are numbered 1 to N. Each of the next R lines has two different integers ai and bi (1≤ai,bi≤N), meaning that a direct road joins the sites ai and bi. At most one road joins any two sites.
If no sequence satisfies the conditions, print no.
Several sequences usually satisfy the conditions, so print the single one that the following rule picks, on one line, with the site numbers separated by single spaces.
For a site v, let Gv be what is left of the map after deleting v together with every site that a road joins to v. Two sites a and b form a detour pair of v when a road joins v to a, a road joins v to b, no road joins a and b, and some path leads from a to b whose interior sites all belong to Gv.
no.The sequence built this way always satisfies the four conditions, and the rule leaves exactly one answer.