A coloring of an undirected graph is a function C : V(T) \to \mathbb{N} where is a set of vertices of . A coloring is pretty if for every two vertices and they are connected with an edge if and only if |C(a) - C(b)| = 1.
You are given an undirected graph. Find some pretty coloring of this graph or report its nonexistence.
The first line contains two integers and (1 \le n \le 2 \cdot 10^5, 0 \le m \le 2 \cdot 10^5): the number of vertices and the number of edges in the graph. Each of the next lines contains two integers and (1 \le x, y \le n) which are the pair of vertices connected by the corresponding edge. Loops and multiple edges are not allowed.
If a pretty coloring does not exist, print NET (no in Russian) on the single line of the output. Otherwise, print DA (yes in Russian) on the first line. On the next line, print integers C(1), \ldots, C(n) for some pretty coloring . The values of should satisfy the constraints 1 \le C(x) \le 10^9. If there are multiple possible answers, print any one of them.
Example 1
Example 2
Example 3