Problem: The Trinitarian kingdom has exactly n = 3k cities. All of them are located on the shores of river Trissisipi, which flows through the whole kingdom. Some of the cities are located on one side of the river, and all the rest are on the other side.

Some cities are connected by bridges built between them. Each bridge connects two cities that are located on the opposite sides of the river. Between any two cities exists no more than one bridge.

The recently inaugurated King Tristan the Third is busy distributing his deputies among cities. In total there are k deputies and the king wants to commission each of them to control exactly three cities. However, no deputy can be entrusted to manage the cities, which are connected by a bridge — the deputy can set a too high fee for travelling over the bridge to benefit his pocket, which is bad for the reputation of the king.

Help King Tristan the Third distribute the deputies between the cities, if it is possible.

Input

The first line contains two integers n and m — the number of cities and bridges (3 ≤ n < 105, n = 3k, 0 ≤ m ≤ 105). Next m lines describe the bridges. The i-th line contains two integers ai and bi — the numbers of cities that are connected by the i-th bridge (1 ≤ ai, bi ≤ n, ai ≠ bi, 1 ≤ i ≤ m).

It is guaranteed that no bridge connects a city with itself and that any two cities are connected with no more than one bridge.

Output

If distributing the deputies in the required manner is impossible, print in a single line "NO" (without the quotes).

Otherwise, in the first line print "YES" (without the quotes), and in the second line print which deputy should be put in charge of each city. The i-th number should represent the number of the deputy (from 1 to k), who should be in charge of city numbered i-th in the input — overall there should be n numbers.

If there are multiple solutions, print any of them.

Examples

Input

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


Output

YES
1 2 1 2 2 1 

Input

3 1
1 2


Output

NO

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
namespace ufs {
int fa[100005];
void makeset(int n) {
  for (int i = 1; i <= n; i++) fa[i] = i;
}
int findset(int u) {
  if (fa[u] == u) return fa[u];
  return fa[u] = findset(fa[u]);
}
void unionset(int a, int b) {
  int u = findset(a);
  int v = findset(b);
  fa[u] = v;
}
}  // namespace ufs
using namespace ufs;
int n, m, tot;
int x = 1, y = 0;
int tot_white, tot_black;
int col[100005], id[100005], d[100005];
bool used[100005];
vector<int> w, b;
vector<int> g[100005], v[100005];
map<int, int> t[100005];
void pr() {
  cout << "YES\n";
  for (int i = 1; i <= n; i++) cout << id[i] << ' ';
  exit(0);
}
void makenext(int &x, int &y) {
  y++;
  x += y / 3;
  y %= 3;
}
void dfs(int u) {
  if (col[u] == 1)
    tot_white++;
  else
    tot_black++;
  for (int i = 0; i < g[u].size(); i++) {
    int v = g[u][i];
    if (col[v] != col[u] * -1) {
      col[v] = col[u] * -1;
      dfs(v);
    }
  }
}
void prepare() {
  for (int i = 1; i <= n; i++)
    if (col[i] == 0) {
      col[i] = 1;
      dfs(i);
    }
  if (tot_white % 3 == 2) {
    swap(tot_white, tot_black);
    for (int i = 1; i <= n; i++) col[i] *= -1;
  }
}
void filp() {
  for (int i = 1; i <= n; i++)
    if (v[i].size() >= 1) {
      for (int j = 0; j < v[i].size(); j++) col[v[i][j]] *= -1;
      break;
    }
  tot_white = tot_black = 0;
  for (int i = 1; i <= n; i++)
    if (col[i] == 1)
      tot_white++;
    else
      tot_black++;
  if (tot_white % 3 == 2) {
    swap(tot_white, tot_black);
    for (int i = 1; i <= n; i++) col[i] *= -1;
  }
}
void make12(int &x, int &y) {
  int _ind;
  for (int i = 0; i < w.size(); i++)
    if (id[w[i]] == 0) {
      _ind = w[i];
      break;
    }
  id[_ind] = x;
  makenext(x, y);
  for (int i = 0; i < b.size(); i++) {
    if (id[b[i]] == 0 && t[_ind][b[i]] == 0) {
      id[b[i]] = x;
      makenext(x, y);
    }
    if (x != id[_ind]) break;
  }
}
void makeall(int &x, int &y) {
  for (int i = 1; i <= n; i++)
    if (col[i] == 1 && id[i] == 0) {
      id[i] = x;
      makenext(x, y);
    }
  for (int i = 1; i <= n; i++)
    if (col[i] == -1 && id[i] == 0) {
      id[i] = x;
      makenext(x, y);
    }
}
void check() {
  w.clear();
  b.clear();
  for (int i = 1; i <= n; i++)
    if (col[i] == 1)
      w.push_back(i);
    else
      b.push_back(i);
  bool f = 0;
  for (int i = 0; i < w.size(); i++)
    if (d[w[i]] <= tot_black - 2) {
      swap(w[0], w[i]);
      f = 1;
      break;
    }
  if (f) {
    make12(x, y);
    makeall(x, y);
    pr();
  }
  if (tot_white >= 4) {
    int tot = 0;
    for (int i = 0; i < b.size(); i++)
      if (d[b[i]] <= tot_white - 2 && tot <= 1) {
        swap(b[tot], b[i]);
        tot++;
      }
    if (tot == 2) {
      swap(tot_black, tot_white);
      swap(w, b);
      for (int i = 1; i <= n; i++) col[i] *= -1;
      make12(x, y);
      make12(x, y);
      makeall(x, y);
      pr();
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin >> n >> m;
  makeset(n);
  for (int i = 1, u, v; i <= m; i++) {
    cin >> u >> v;
    g[u].push_back(v);
    g[v].push_back(u);
    d[u]++;
    d[v]++;
    t[u][v] = t[v][u] = 1;
    unionset(u, v);
  }
  for (int i = 1; i <= n; i++) {
    if (used[findset(i)] == 0) {
      used[findset(i)] = 1;
      tot++;
    }
    v[findset(i)].push_back(i);
  }
  prepare();
  if (tot_white % 3 == 0 && tot_black % 3 == 0) {
    makeall(x, y);
    pr();
  }
  if (tot == 2) {
    check();
  } else
    check();
  cout << "NO";
  return 0;
}