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;
using Graph = vector<vector<int>>;
void Yes(vector<int> vs) {
  cout << "Yes" << endl;
  for (int i = 0; i < vs.size(); i++) cout << vs[i] + 1 << " ";
  cout << endl;
  exit(0);
}
void No() {
  cout << "No" << endl;
  exit(0);
}
void dfsBC(int v, Graph& g, vector<int>& col) {
  for (auto to : g[v]) {
    if (col[to] == -1) {
      col[to] = !col[v];
      dfsBC(to, g, col);
    }
  }
}
void solve2(int n, Graph& g) {
  vector<int> col(n, -1);
  col[0] = 0;
  dfsBC(0, g, col);
  Yes(col);
}
pair<int, int> dfs0(int v, int pre, Graph& g) {
  pair<int, int> res = {0, v};
  for (auto to : g[v]) {
    if (to == pre) continue;
    auto ret = dfs0(to, v, g);
    ret.first++;
    res = max(ret, res);
  }
  return res;
}
void dfs1(int v, int pre, int tar, Graph& g, vector<int>& vs) {
  if (v == tar) {
    vs.push_back(v);
    return;
  }
  for (auto to : g[v]) {
    if (to == pre) continue;
    dfs1(to, v, tar, g, vs);
    if (vs.size()) {
      vs.push_back(v);
      return;
    }
  }
}
vector<int> getDiameter(Graph& g) {
  auto p = dfs0(0, -1, g);
  int v = p.second;
  p = dfs0(v, -1, g);
  v = p.second;
  p = dfs0(v, -1, g);
  vector<int> vs;
  dfs1(v, -1, p.second, g, vs);
  return vs;
}
void dfsCOL(int v, int pre, int c, int diff, vector<int>& col, Graph& g) {
  col[v] = c;
  for (auto to : g[v]) {
    if (to == pre) continue;
    dfsCOL(to, v, c + diff, diff, col, g);
  }
}
int setLen(int v, int pre, vector<int>& len, Graph& g, int k) {
  pair<int, int> dblMax;
  for (auto to : g[v]) {
    if (to == pre) continue;
    auto ret = setLen(to, v, len, g, k);
    if (dblMax.second < ret) dblMax.second = ret;
    if (dblMax.first < dblMax.second) swap(dblMax.first, dblMax.second);
  }
  if (dblMax.second && dblMax.first + dblMax.second >= k - 1) No();
  return len[v] = dblMax.first + 1;
}
void solve(int n, int k, Graph& g) {
  vector<int> vs = getDiameter(g);
  if (vs.size() < k) {
    vector<int> col(n, 0);
    iota(col.begin(), col.begin() + k, 0);
    Yes(col);
  }
  vs.resize(k);
  vector<int> maxLen(k);
  vector<int> lenL(k);
  vector<int> lenR(k);
  vector<int> len(n);
  set<int> terminals(vs.begin(), vs.end());
  for (int i = 0; i < k; i++) {
    int v = vs[i];
    for (auto to : g[v]) {
      if (terminals.count(to)) continue;
      setLen(to, v, len, g, k);
      if (lenR[i] < len[to]) lenR[i] = len[to];
      if (lenL[i] < lenR[i]) swap(lenL[i], lenR[i]);
    }
    if (lenR[i] && lenL[i] && lenR[i] + lenL[i] >= k - 1) No();
    lenR[i] = lenL[i] = max(lenR[i], lenL[i]) + 1;
    maxLen[i] = lenL[i] - 1;
  }
  for (int i = 0; i + 1 < k; i++) lenL[i + 1] = max(lenL[i + 1], lenL[i] + 1);
  for (int i = k - 1; i > 0; i--) lenR[i - 1] = max(lenR[i - 1], lenR[i] + 1);
  vector<int> flagL(k);
  flagL[0] = false;
  flagL[k - 1] = true;
  for (int i = 1; i < k - 1; i++) {
    bool bl = lenL[i - 1] + maxLen[i] >= k - 1;
    bool br = lenR[i + 1] + maxLen[i] >= k - 1;
    if (maxLen[i] && bl && br) No();
    flagL[i] = bl;
  }
  vector<int> col(n);
  for (int i = 0; i < k; i++) {
    int v = vs[i];
    col[v] = i;
    int c, diff;
    if (flagL[i]) {
      c = i + 1;
      diff = 1;
    } else {
      c = i - 1;
      diff = -1;
    }
    for (auto to : g[v]) {
      if (terminals.count(to)) continue;
      dfsCOL(to, v, c, diff, col, g);
    }
  }
  for (int i = 0; i < n; i++) col[i] = (col[i] % k + k) % k;
  Yes(col);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  Graph g(n);
  for (int i = 0; i + 1 < n; i++) {
    int a, b;
    cin >> a >> b;
    a--, b--;
    g[a].push_back(b);
    g[b].push_back(a);
  }
  if (k == 2) {
    solve2(n, g);
    return 0;
  } else {
    solve(n, k, g);
    return 0;
  }
}