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;
bool bo[200010];
int n, x, y, hd[200010], k, q[200010], qn, l, r, cnt, la[200010], col[200010],
    mxd[200010], dep[200010];
struct node {
  int to, next;
} e[400010];
void addedge(int x, int y) {
  e[++cnt] = (node){y, hd[x]}, hd[x] = cnt;
  e[++cnt] = (node){x, hd[y]}, hd[y] = cnt;
}
void getcol2(int x, int fa) {
  for (int i = hd[x]; i; i = e[i].next)
    if (e[i].to != fa) col[e[i].to] = 3 - col[x], getcol2(e[i].to, x);
}
void dfs(int x, int fa) {
  mxd[x] = dep[x] = dep[fa] + 1;
  for (int i = hd[x]; i; i = e[i].next)
    if (e[i].to != fa) dfs(e[i].to, x), mxd[x] = max(mxd[x], mxd[e[i].to]);
}
void dfs1(int x, int fa) {
  col[x] = (col[fa] == k ? 1 : col[fa] + 1);
  for (int i = hd[x]; i; i = e[i].next)
    if (e[i].to != fa) dfs1(e[i].to, x);
}
void dfs2(int x, int fa) {
  col[x] = (col[fa] == 1 ? k : col[fa] - 1);
  for (int i = hd[x]; i; i = e[i].next)
    if (e[i].to != fa) dfs2(e[i].to, x);
}
int main() {
  scanf("%d%d", &n, &k);
  for (int i = 1; i < n; i++) scanf("%d%d", &x, &y), addedge(x, y);
  if (k == 2) {
    col[1] = 1, getcol2(1, 0);
    puts("Yes");
    for (int i = 1; i <= n; i++) printf("%d ", col[i]);
    puts("");
    return 0;
  }
  q[l = r = 1] = 1, memset(bo, 0, sizeof(bo)), bo[1] = 1;
  while (l <= r) {
    x = q[l++];
    for (int i = hd[x]; i; i = e[i].next)
      if (!bo[e[i].to]) q[++r] = e[i].to, bo[e[i].to] = 1;
  }
  q[1] = q[r], l = r = 1, memset(bo, 0, sizeof(bo)), bo[q[1]] = 1, la[q[1]] = 0;
  while (l <= r) {
    x = q[l++];
    for (int i = hd[x]; i; i = e[i].next)
      if (!bo[e[i].to]) q[++r] = e[i].to, bo[e[i].to] = 1, la[e[i].to] = x;
  }
  int nw = q[1];
  q[qn = 1] = q[r];
  while (la[q[qn]]) q[qn + 1] = la[q[qn]], qn++;
  memset(bo, 0, sizeof(bo));
  for (int i = 1; i <= qn; i++) bo[q[i]] = 1, col[q[i]] = i % k + 1;
  for (int i = 1; i <= qn; i++) {
    mxd[q[i]] = 0;
    for (int j = hd[q[i]]; j; j = e[j].next)
      if (!bo[e[j].to]) {
        dfs(e[j].to, q[i]);
        mxd[q[i]] = max(mxd[q[i]], mxd[e[j].to]);
      }
    if (mxd[q[i]] && mxd[q[i]] + i >= k && mxd[q[i]] + (qn - i + 1) >= k)
      return puts("No"), 0;
    if (mxd[q[i]] + i >= k) {
      for (int j = hd[q[i]]; j; j = e[j].next)
        if (!bo[e[j].to]) dfs1(e[j].to, q[i]);
    } else {
      for (int j = hd[q[i]]; j; j = e[j].next)
        if (!bo[e[j].to]) dfs2(e[j].to, q[i]);
    }
  }
  puts("Yes");
  for (int i = 1; i <= n; i++) printf("%d ", col[i]);
  puts("");
  return 0;
}