Problem: The new pedestrian zone in Moscow city center consists of n squares connected with each other by n - 1 footpaths. We define a simple path as a sequence of squares such that no square appears in this sequence twice and any two adjacent squares in this sequence are directly connected with a footpath. The size of a simple path is the number of squares in it. The footpaths are designed in a such a way that there is exactly one simple path between any pair of different squares.

During preparations for Moscow City Day the city council decided to renew ground tiles on all n squares. There are k tile types of different colors, numbered from 1 to k. For each square exactly one tile type must be selected and then used to cover this square surface. To make walking through the city center more fascinating, it was decided to select tiles types for each square in such a way that any possible simple path of size exactly k contains squares with all k possible tile colors.

You need to find out whether it is possible to place the tiles this way or not.

Input

The first line contains two integers n, k (2 ≤ k ≤ n ≤ 200 000) — the number of squares in the new pedestrian zone, the number of different tile colors.

Each of the following n - 1 lines contains two integers v_i and u_i (1 ≤ v_i, u_i ≤ n) — numbers of the squares connected by the corresponding road.

It's guaranteed, that it's possible to go from any square to any other square, moreover there is exactly one such simple path.

Output

Print "Yes" if it is possible to assign tile colors this way and "No" otherwise.

In case your answer is "Yes", print n integers from 1 to k each, the color of the tile for every square.

Examples

Input


7 4
1 3
2 3
3 4
4 5
5 6
5 7


Output


Yes
1 1 2 3 4 1 1


Input


7 3
1 3
2 3
3 4
4 5
5 6
5 7


Output


No

Note

The following pictures illustrate the pedestrian zone in first and second examples. The second picture also shows one possible distribution of colors among the squares for k = 4.

<image>

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
int head[200010], to[200010 << 1], nxt[200010 << 1], idx, col[200010],
    dis[200010], fa[200010], point[200010], n, k, en[2], mx[200010],
    smx[200010];
void add(int a, int b) { nxt[++idx] = head[a], to[idx] = b, head[a] = idx; }
void dfs(int p, int from) {
  fa[p] = from, dis[p] = dis[from] + 1;
  for (int i = head[p]; i; i = nxt[i])
    if (to[i] != from) dfs(to[i], p);
}
void init(int kind) {
  for (int i = 1; i <= n; i++)
    if (dis[i] > dis[en[kind]]) en[kind] = i;
  for (int i = 1; i <= n; i++) dis[i] = 0;
}
void dfs2(int p, int from) {
  dis[p] = dis[from] + 1, mx[p] = 1, smx[p] = 1;
  for (int i = head[p]; i; i = nxt[i])
    if (to[i] != from) {
      dfs2(to[i], p), smx[p] = max(smx[p], mx[to[i]] + 1);
      if (smx[p] > mx[p]) swap(smx[p], mx[p]);
    }
}
void dfs3(int p, int from, int now) {
  if (!col[p]) col[p] = now;
  for (int i = head[p]; i; i = nxt[i])
    if (to[i] != from) dfs3(to[i], p, (now - 1) ? now - 1 : k);
}
void dfs4(int p, int from, int now) {
  if (!col[p]) col[p] = now;
  for (int i = head[p]; i; i = nxt[i])
    if (to[i] != from) dfs4(to[i], p, now % k + 1);
}
void colur() {
  for (int i = en[1]; i; i = fa[i]) point[++point[0]] = i;
  reverse(point + 1, point + point[0] + 1);
  for (int i = 1; i <= point[0]; i++) col[point[i]] = (i - 1) % k + 1;
  if (point[0] % 2)
    dfs3(point[point[0] / 2 + 1], point[point[0] / 2 + 2],
         col[point[point[0] / 2 + 1]]),
        dfs4(point[point[0] / 2 + 1], point[point[0] / 2],
             col[point[point[0] / 2 + 1]]);
  else
    dfs3(point[point[0] / 2], point[point[0] / 2 + 1],
         col[point[point[0] / 2]]),
        dfs4(point[point[0] / 2 + 1], point[point[0] / 2],
             col[point[point[0] / 2 + 1]]);
  for (int i = 1; i <= n; i++) printf("%d ", col[i]);
}
int main() {
  scanf("%d%d", &n, &k);
  for (int i = 1, x, y; i < n; i++) scanf("%d%d", &x, &y), add(x, y), add(y, x);
  dfs(1, 0), init(0), dfs(en[0], 0), init(1), dfs2(en[0], 0);
  if (k == 2) printf("Yes\n"), colur(), exit(0);
  for (int i = 1; i <= n; i++) {
    int tmp = min(dis[i], mx[i]), tmp2 = smx[i];
    if (tmp + tmp2 - 1 >= k && tmp2 > 1) printf("No\n"), exit(0);
  }
  printf("Yes\n"), colur();
}