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;
const int maxn = 500005;
struct edge {
  int v, next;
};
edge w[maxn], x[maxn];
int deg[maxn], cnt[maxn], a[maxn], b[maxn], xx[maxn], ww[maxn], ans[maxn],
    color[maxn], que[maxn], visit[maxn];
int N, M, W = 1, X = 1;
bool sort_cnt(const int x, const int y) { return cnt[x] > cnt[y]; }
void Print(int c, int checkerlog) {
  int now = 0;
  for (int i = 1; i <= a[0]; ++i)
    if (!ans[a[i]]) {
      ans[a[i]] = c;
      ++now;
      if (now >= 3) now = 0, ++c;
    }
  for (int i = 1; i <= b[0]; ++i)
    if (!ans[b[i]]) {
      ans[b[i]] = c;
      ++now;
      if (now >= 3) now = 0, ++c;
    }
  puts("YES");
  for (int i = 1; i <= N; ++i) printf("%d ", ans[i]);
  exit(0);
}
void Work(int a[], int b[]) {
  for (int j = 1; j <= a[0]; ++j) {
    int u = a[j];
    for (int i = ww[u]; i; i = w[i].next) visit[w[i].v] = 1;
    int t[3] = {0, 0, 0};
    for (int i = 1; i <= b[0]; ++i)
      if (!visit[b[i]]) {
        t[0] = min(t[0] + 1, 2);
        t[t[0]] = b[i];
      }
    for (int i = ww[u]; i; i = w[i].next) visit[w[i].v] = 0;
    if (t[0] == 2) {
      ans[u] = ans[t[1]] = ans[t[2]] = 1;
      Print(2, 1);
    }
    if (t[0]) {
      x[++X].v = u;
      x[X].next = xx[t[1]];
      xx[t[1]] = X;
      ++cnt[t[1]];
    }
  }
  sort(b + 1, b + b[0] + 1, sort_cnt);
  if (cnt[b[2]] >= 2) {
    int u = b[1];
    ans[x[xx[u]].v] = ans[x[x[xx[u]].next].v] = ans[u] = 1;
    int v = b[2];
    ans[x[xx[v]].v] = ans[x[x[xx[v]].next].v] = ans[v] = 2;
    Print(3, 2);
  }
  puts("NO");
}
int main() {
  scanf("%d%d", &N, &M);
  for (int i = 1, u, v; i <= M; ++i) {
    scanf("%d%d", &u, &v);
    w[++W].v = v;
    w[W].next = ww[u];
    ww[u] = W;
    w[++W].v = u;
    w[W].next = ww[v];
    ww[v] = W;
    ++deg[u];
    ++deg[v];
  }
  for (int s = 1, fi, la; s <= N; ++s)
    if (!color[s]) {
      que[la = 1] = s;
      color[s] = 1;
      for (fi = 1; fi <= la; ++fi) {
        int u = que[fi];
        for (int i = ww[u]; i; i = w[i].next) {
          int v = w[i].v;
          if (color[v]) continue;
          color[v] = 3 - color[u];
          que[++la] = v;
        }
      }
    }
  for (int i = 1; i <= N; ++i)
    if (color[i] == 1) a[++a[0]] = i;
  for (int i = 1; i <= N; ++i)
    if (color[i] == 2) b[++b[0]] = i;
  if (a[0] % 3 == 0 && b[0] % 3 == 0) Print(1, 0);
  if (a[0] % 3 == 1)
    Work(a, b);
  else
    Work(b, a);
  return 0;
}