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 C = 100001;
vector<vector<int> > gr(C);
int ij[C], a, b, n, m, lx, ly, at = 1;
bool lypa = 0, GG = 0;
int F[C], iF, jF, X[C], Y[C], v[C], eval[C];
bool ch[C];
void match(int n, int m, vector<vector<int> > &tab, int ij[]) {
  int i, j;
  for (i = 1; i <= n; i++) {
    if (ch[i] == 1) continue;
    v[i] = 1, F[0] = i, iF = 0, jF = 1;
    for (; iF < jF; iF++) {
      a = F[iF];
      for (j = 0; j < ij[a]; j++)
        if (ch[tab[a][j]] == 0)
          ch[tab[a][j]] = 1, F[jF] = tab[a][j],
          v[tab[a][j]] = ((v[a] == 0) ? (1) : (0)), jF++;
    }
  }
  for (i = 1; i <= n; i++) {
    if (v[i] == 1)
      X[lx] = i, lx++;
    else
      Y[ly] = i, ly++;
  }
}
int sl[C], x1, aa;
void sear(int A[], int na, int B[], int nb) {
  int i, j;
  for (i = 0; i < na; i++) {
    if (nb - ij[A[i]] > 1) {
      for (j = 0; j < ij[A[i]]; j++) sl[gr[A[i]][j]] = 1;
      eval[A[i]] = 1;
      for (j = 0; j < nb; j++) {
        if (sl[B[j]] == 0) aa++, eval[B[j]] = 1;
        if (aa == 2) break;
      }
      at = 2;
      return;
    }
  }
}
int sl2[C], sl3[C], im = 0, isl2 = 0, isl3 = 0, x2, x3;
void sear2(int A[], int na, int B[], int nb) {
  int i, i2, j, ac = 0, bc = 0;
  if (at == 2) return;
  for (i = 0; i < na; i++) {
    if (nb - ij[A[i]] < 2) continue;
    for (j = 0; j < ij[A[i]]; j++) sl2[gr[A[i]][j]] = 1, isl2++;
    x2 = isl2, isl2 = nb - isl2;
    for (i2 = i + 1; i2 < na; i2++) {
      if (nb - ij[A[i2]] < 2) continue;
      for (j = 0; j < ij[A[i2]]; j++) {
        if (sl2[gr[A[i2]][j]] == 1) im++;
        sl3[gr[A[i2]][j]] = 1, isl3++;
      }
      x3 = isl3, isl3 = nb - isl3;
      im = nb - x3 - x2 + im;
      if (isl2 > 1 && isl3 > 1 && isl2 + isl3 - im > 3) {
        eval[A[i]] = 1, eval[A[i2]] = 2;
        for (j = 0; j < nb; j++) {
          if (sl2[B[j]] == 0 && sl3[B[j]] == 0)
            ;
          else if (sl2[B[j]] == 0 && ac < 2)
            ac++, eval[B[j]] = 1;
          else if (sl3[B[j]] == 0 && bc < 2)
            bc++, eval[B[j]] = 2;
          if (ac == 2 && bc == 2) break;
        }
        for (j = 0; j < nb; j++) {
          if (sl2[B[j]] == 0 && sl3[B[j]] == 0) {
            if (ac < 2)
              eval[B[j]] = 1, ac++;
            else if (bc < 2)
              eval[B[j]] = 2, bc++;
          }
          if (ac == 2 && bc == 2) break;
        }
        at = 3;
        return;
      }
      for (j = 0; j < ij[A[i2]]; j++) sl3[gr[A[i2]][j]] = 0;
      im = isl3 = 0;
    }
    for (j = 0; j < ij[A[i]]; j++) sl2[gr[A[i]][j]] = 0;
    isl2 = 0;
  }
}
void purify() {
  int i, j, nat = 0;
  for (i = 0; i < lx; i++) {
    if (eval[X[i]] == 0) eval[X[i]] = at, nat++;
    if (nat == 3) nat = 0, at++;
  }
  if (nat != 0) lypa = 1;
  for (i = 0; i < ly; i++) {
    if (eval[Y[i]] == 0) eval[Y[i]] = at, nat++;
    if (nat == 3) nat = 0, at++;
  }
  if (nat != 0) lypa = 1;
}
int main() {
  int i;
  scanf("%d %d", &n, &m);
  for (int z = 0; z < m; z++)
    scanf("%d %d", &a, &b), gr[a].push_back(b), gr[b].push_back(a), ij[a]++,
        ij[b]++;
  match(n, m, gr, ij);
  if (ly % 3 == 1)
    sear(Y, ly, X, lx), sear2(X, lx, Y, ly);
  else if (lx % 3 == 1)
    sear(X, lx, Y, ly), sear2(Y, ly, X, lx);
  purify();
  if (lypa == 0) {
    printf("YES\n");
    for (i = 1; i <= n; i++) printf("%d ", eval[i]);
  }
  if (lypa == 1) printf("NO\n");
  return 0;
}