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;
template <class T>
T abs(T x) {
  return x > 0 ? x : -x;
}
int n;
int m;
vector<int> v[100000];
set<pair<int, int> > all;
int was[100000], res[100000];
vector<int> w[2];
int go(int x, int y) {
  was[x] = 1;
  w[y].push_back(x);
  for (int i = 0; i < ((int)(v[x]).size()); i++)
    if (!was[v[x][i]]) go(v[x][i], y ^ 1);
  return 0;
}
int make() {
  int r = 1, rem = 3;
  for (int i = 0; i < ((int)(w[0]).size()); i++)
    if (!res[w[0][i]]) {
      res[w[0][i]] = r;
      rem--;
      if (!rem) {
        r++;
        rem = 3;
      }
    }
  for (int i = 0; i < ((int)(w[1]).size()); i++)
    if (!res[w[1][i]]) {
      res[w[1][i]] = r;
      rem--;
      if (!rem) {
        r++;
        rem = 3;
      }
    }
  return 0;
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 0; i < m; i++) {
    int a, b;
    scanf("%d%d", &a, &b);
    a--;
    b--;
    v[a].push_back(b);
    v[b].push_back(a);
    all.insert(make_pair(a, b));
    all.insert(make_pair(b, a));
  }
  for (int i = 0; i < n; i++)
    if (!was[i]) go(i, 0);
  int ok = 0;
  if (((int)(w[0]).size()) % 3 == 0) {
    ok = 1;
    make();
  } else {
    if (((int)(w[0]).size()) % 3 == 2) swap(w[0], w[1]);
    int a = -1;
    for (int i = 0; i < ((int)(w[0]).size()); i++)
      if (((int)(v[w[0][i]]).size()) + 2 <= ((int)(w[1]).size())) {
        a = w[0][i];
        break;
      }
    if (a >= 0) {
      int b = -1, c = -1;
      for (int j = 0; j < ((int)(w[1]).size()); j++)
        if (!all.count(make_pair(a, w[1][j])))
          if (b == -1)
            b = w[1][j];
          else {
            c = w[1][j];
            break;
          }
      res[a] = res[b] = res[c] = n / 3;
      make();
      ok = 1;
    } else {
      int b = -1;
      for (int j = 0; j < ((int)(w[1]).size()); j++)
        if (((int)(v[w[1][j]]).size()) + 2 <= ((int)(w[0]).size()))
          if (a == -1)
            a = w[1][j];
          else {
            b = w[1][j];
            break;
          }
      if (b != -1) {
        int c = -1, d = -1;
        for (int j = 0; j < ((int)(w[0]).size()); j++)
          if (!all.count(make_pair(a, w[0][j])))
            if (c == -1)
              c = w[0][j];
            else {
              d = w[0][j];
              break;
            }
        res[a] = res[c] = res[d] = n / 3;
        c = d = -1;
        for (int j = 0; j < ((int)(w[0]).size()); j++)
          if (!all.count(make_pair(b, w[0][j])))
            if (c == -1)
              c = w[0][j];
            else {
              d = w[0][j];
              break;
            }
        res[b] = res[c] = res[d] = n / 3 - 1;
        make();
        ok = 1;
      }
    }
  }
  if (!ok)
    printf("NO\n");
  else {
    printf("YES\n");
    for (int i = 0; i < n; i++) printf("%d ", res[i]);
    printf("\n");
  }
  return 0;
}