Serge is studying graph theory. Recently, he has learned about graph radius and diameter. Consider an undirected, unweighted, connected graph . Let us denote the length of the shortest path between vertices and as . The radius of the graph is defined as
The diameter of the graph is defined as
Intuitively, the diameter of the graph is the largest distance that you need to traverse to get from one vertex to another, and the radius is the largest distance you can be forced to go from your chosen central vertex.
The professor proved during the lecture that \frac{d(G)}{2} \leq r(G) \leq d(G) for any graph . Now Serge wonders whether for any values and such that \frac{d}{2} \leq r \leq d, there exists a graph such that d(G) = d and r(G) = r. Help him to find out.
The input contains two integer numbers and (\frac{d}{2} \leq r \leq d \leq 50, 1 \leq r).
If there exists a graph with the given radius and diameter, output YES on the first line. The second line must contain two integer numbers: (2 \leq n \leq 400) and — the number of vertices and the number of edges. The following lines must each contain two integer numbers — the vertices connected by the corresponding edge. The graph must not contain loops or parallel edges.
If there is no such graph, output NO on the first line.
Example
4 2YES
5 4
1 2
2 3
3 4
3 5Example
3 1NOExample 1