Let be a rooted tree (a connected undirected acylic graph), and let be a perfect copy of . Construct a new graph by taking the union of and , and merging the corresponding leaf nodes (but never the root). We call such a graph a tree-mirrored graph.
输入格式
The first line of input contains two integers and , the number of vertices and edges of a graph . The vertices in are labeled from to . The following lines describe the edges. Each such line contains two integers and , describing one edge. There will be at most one edge between any pair of vertices.
输出格式
The first and only line of output should contain the string YES if the graph is a tree-mirrored graph, and NO otherwise.