Potemkin cycle#9038

Potemkin cycle

1 second
128 megabytes
Hard

Prince Potemkin is well-known for his fake villages, created in haste to impress visiting dignitaries. He would lead the delegation along a closed route in his territory, and at each suitable site, a troupe of actors would erect a mobile village and pretend to be its inhabitants. Once the delegation moved, the actors disassembled the village and rushed ahead of the delegation to the next suitable site.

Of course, choosing the right route requires some thought. The members of the delegation occasionally leave the planned route for short inspection trips, and if they ever came back to a site they previously visited, the ruse would fail, since they would see an empty spot where they previously saw a village. Also, to properly impress, the route should pass through at least four sites.

You are given a map of Potemkin's territory, including the list of bidirectional direct roads among the suitable sites (the crossings among the direct roads are handled by an intricate system of overpasses, making it impossible for the dignitaries to switch from one road to another at any point other than its ends). Prince Potemkin asked you to find a sequence s_1, ..., s_m of sites such that:

Input

The first line contains two non-negative integers and (0 \le n \le 1000, 0 \le r \le 10^5), denoting the number of sites and the number of direct roads among them, respectively. The -th of the following lines contains two distinct positive integers a_i and b_i (1 \le a_i, b_i \le n), showing that the sites a_i and b_i are joined by a direct road. Each two sites are joined by at most one road.

Output

Write a sequence s_1, ..., s_m of pairwise distinct integers, describing a route as specified in the problem statement (an arbitrary one, if more valid sequences exist). If no such sequence exists, write "no" instead.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading