Graph Theory#3074

Graph Theory

1 second
256 megabytes
Very easy

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

r(G) = \min_{v \in V} \max_{u \in V} \rho(v, u)

The diameter of the graph is defined as

d(G) = \max_{v, u \in V} \rho(v, u)

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.

Input

The input contains two integer numbers and (\frac{d}{2} \leq r \leq d \leq 50, 1 \leq r).

Output

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.

Examples

Example

Input
4 2
Output
YES
5 4
1 2
2 3
3 4
3 5

Example

Input
3 1
Output
NO

Example 1

Loading
Loading