Vertex Cover#1873

Vertex Cover

1 second
256 megabytes
Medium

Let's learn how to solve the following NP-problem.

You are given a graph and a number . You need to find a set of vertices such that for every edge in the given graph, at least one of its endpoints is included in the chosen set of vertices.

Input

The first line contains integers: , , and , where is the number of vertices in the graph, is the number of edges, and is the number of vertices you need to select. The following lines describe the edges of the graph.

It is guaranteed that 1 \leq k \leq n \leq 2000, 1 \leq m \leq 10^5. The degree of each vertex is at least .

Output

If such a set exists, print Yes on the first line, and on the second line print distinct integers representing the indices of the selected vertices. If no such set exists, print No. If there are multiple possible answers, output any one of them. You cannot include the same vertex in the set more than once, so all numbers must be different.

Examples

Example 1

Loading
Loading