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;
vector<vector<int> > gr;
vector<int> col;
vector<int> p(2);
void dfs(int v, int t) {
  if (col[v] == -1) {
    col[v] = t;
    p[t]++;
    for (int i = 0; i < gr[v].size(); ++i) dfs(gr[v][i], 1 - t);
  }
}
int main() {
  int n, m;
  cin >> n >> m;
  gr.resize(n);
  for (int i = 0; i < m; ++i) {
    int a, b;
    scanf("%d%d", &a, &b);
    --a;
    --b;
    gr[a].push_back(b);
    gr[b].push_back(a);
  }
  col.assign(n, -1);
  for (int i = 0; i < n; ++i) dfs(i, 0);
  vector<int> res(n);
  int curk = 1;
  if (p[0] % 3) {
    if (p[0] % 3 != 1) {
      swap(p[0], p[1]);
      for (int i = 0; i < n; ++i) col[i] = 1 - col[i];
    }
    int ok = 0, good = 0;
    for (int i = 0; i < n; ++i)
      if (col[i] == 0 && gr[i].size() + 2 <= p[1]) {
        ok = 1;
        good = i;
        break;
      }
    if (!ok) {
      vector<int> g(2);
      int cg = 0;
      for (int i = 0; i < n; ++i)
        if (col[i] == 1 && gr[i].size() + 2 <= p[0]) {
          g[cg] = i;
          ++cg;
          if (cg == 2) break;
        }
      if (cg < 2) {
        cout << "NO\n";
        return 0;
      }
      res[g[0]] = 1;
      res[g[1]] = 2;
      int cnt = 0;
      vector<int> bad(n);
      for (int i = 0; i < gr[g[0]].size(); ++i) bad[gr[g[0]][i]] = 1;
      for (int i = 0; i < n; ++i)
        if (col[i] == 0 && !bad[i]) {
          res[i] = 1;
          ++cnt;
          if (cnt >= 2) break;
        }
      cnt = 0;
      bad.assign(n, 0);
      for (int i = 0; i < gr[g[1]].size(); ++i) bad[gr[g[1]][i]] = 1;
      for (int i = 0; i < n; ++i)
        if (col[i] == 0 && !bad[i]) {
          res[i] = 2;
          ++cnt;
          if (cnt >= 2) break;
        }
      curk = 3;
    } else {
      res[good] = 1;
      int cnt = 0;
      vector<int> bad(n);
      for (int i = 0; i < gr[good].size(); ++i) bad[gr[good][i]] = 1;
      for (int i = 0; i < n; ++i)
        if (col[i] && !bad[i]) {
          res[i] = 1;
          ++cnt;
          if (cnt >= 2) break;
        }
      curk = 2;
    }
  }
  int cnt = 0;
  for (int i = 0; i < n; ++i)
    if (col[i] == 0 && res[i] == 0) {
      res[i] = curk;
      ++cnt;
      if (cnt == 3) {
        ++curk;
        cnt = 0;
      }
    }
  for (int i = 0; i < n; ++i)
    if (col[i] == 1 && res[i] == 0) {
      res[i] = curk;
      ++cnt;
      if (cnt == 3) {
        ++curk;
        cnt = 0;
      }
    }
  cout << "YES\n";
  for (int i = 0; i < n; ++i) printf("%d ", res[i]);
  return 0;
}