Sunny Graph

아직 제출이 없습니다시간 제한3초메모리 제한512 MB

문제

The Sun is a great heavenly body. The Sun is worshiped by various religions. Bob loves the Sun and loves any object that is similar to the Sun. He noticed that he can find the shape of the Sun in certain graphs. He calls such graphs "Sunny".

We define the property "Sunny" mathematically. A graph G=(V,E)G=(V,E) with a vertex vVv \in V is called "Sunny" when there exists a subgraph G=(V,E),EEG'=(V,E'), E' \subseteq E that has the following two properties. (Be careful, the set of vertices must be the same.)

  1. The connected component containing vv is a cycle that consists of three or more vertices.
  2. Every other component has exactly two vertices.

The following picture is an example of a subgraph G=(V,E)G'=(V,E') that has the above property.

Given a simple graph (In each edge, two end points are different. Every pair of vertices has one or no edge.) G=(V,E)G=(V,E), write a program that decides whether the given graph with the vertex 11 is "Sunny" or not.

입력

The first line contains two integers NN (odd, 1N2001 \leq N \leq 200) and MM (0M20,0000 \leq M \leq 20,000), separated by a single space. NN is the number of the vertices and MM is the number of the edges.

The following MM lines describe the edges. Each line contains two integers v_iv\_i and u_iu\_i (1u_i,v_iN1 \leq u\_i, v\_i \leq N). (u_i,v_iu\_i, v\_i) indicates the edge that connects the two vertices u_iu\_i and v_iv\_i. u_iu\_i and v_iv\_i are different, and every pair (u_i,v_i)(u\_i,v\_i) are different.

출력

Print a line containing "Yes" when the graph is "Sunny". Otherwise, print "No".