Check whether the given undirected graph is connected. That is, determine if it is possible to reach any vertex from any other vertex using the edges of the graph.
The first line contains two integers (1 \leq n \leq 100) — the number of vertices, and (1 \leq m \leq 10^4) — the number of edges in the graph. Each of the next lines contains two integers u_i and v_i (1 \leq u_i, v_i \leq n), representing an edge between vertices u_i and v_i.
Print YES if the graph is connected, otherwise print NO.
Example 1
Example 2