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>
inline bool Up(T &a, const T &b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool Down(T &a, const T &b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
inline int getus() {
  int tmp, c;
  while (tmp = fgetc(stdin), tmp < '0' || tmp > '9')
    ;
  tmp -= '0';
  while (c = fgetc(stdin), '0' <= c && c <= '9') tmp = tmp * 10 + c - '0';
  return tmp;
}
inline int getint() {
  int tmp, c, flag;
  while (flag = fgetc(stdin), flag != '-' && (flag < '0' || flag > '9'))
    ;
  if (flag == '-')
    tmp = 0;
  else
    tmp = flag - '0';
  while (c = fgetc(stdin), '0' <= c && c <= '9') tmp = tmp * 10 + c - '0';
  return flag == '-' ? -tmp : tmp;
}
int N, M, k = 0, deg[100022], ans[100022];
set<int> fir[100022], node[2];
void Select() {
  if (node[0].size() % 3 == 0) return;
  int x, y, r[3], Rcnt = 0;
  for (__typeof(node[0].begin()) i = node[0].begin(); i != node[0].end(); ++i)
    if (deg[x = *i] + 2 <= int(node[1].size())) {
      for (__typeof(node[1].begin()) j = node[1].begin(); j != node[1].end();
           ++j)
        if (!fir[x].count(y = *j)) {
          r[++Rcnt] = y;
          if (Rcnt == 2) break;
        }
      assert(Rcnt == 2);
      node[1].erase(r[1]);
      node[1].erase(r[2]);
      node[0].erase(x);
      for (__typeof(fir[x].begin()) j = fir[x].begin(); j != fir[x].end(); ++j)
        --deg[*j];
      for (__typeof(fir[r[1]].begin()) j = fir[r[1]].begin();
           j != fir[r[1]].end(); ++j)
        --deg[*j];
      for (__typeof(fir[r[2]].begin()) j = fir[r[2]].begin();
           j != fir[r[2]].end(); ++j)
        --deg[*j];
      ans[x] = ans[r[1]] = ans[r[2]] = ++k;
      return;
    }
}
void Print() {
  if (int(node[0].size()) % 3 || int(node[1].size()) % 3) {
    puts("NO");
    return;
  }
  puts("YES");
  for (set<int>::iterator i = node[0].begin(); i != node[0].end(); ++i) {
    ans[*i] = ++k;
    ans[*++i] = k;
    ans[*++i] = k;
  }
  for (set<int>::iterator i = node[1].begin(); i != node[1].end(); ++i) {
    ans[*i] = ++k;
    ans[*++i] = k;
    ans[*++i] = k;
  }
  assert(k * 3 == N);
  for (int i = (1); i <= (N); ++i) {
    printf("%d", ans[i]);
    if (i != N) putchar(' ');
  }
  putchar('\n');
}
void Work() {
  if (node[0].size() % 3 == 2) node[0].swap(node[1]);
  Select();
  node[0].swap(node[1]);
  Select();
  Select();
  Print();
}
void Init() {
  static int state[100022];
  int x, y;
  memset(deg, 0, sizeof(deg));
  memset(state, -1, sizeof(state));
  N = getus();
  M = getus();
  for (int i = (1); i <= (M); ++i) {
    x = getus();
    y = getus();
    fir[x].insert(y);
    fir[y].insert(x);
    ++deg[x];
    ++deg[y];
  }
  queue<int> q;
  for (int i = (1); i <= (N); ++i)
    if (state[i] == -1)
      for (state[i] = 0, q.push(i); !q.empty();) {
        x = q.front();
        q.pop();
        node[state[x]].insert(x);
        for (__typeof(fir[x].begin()) e = fir[x].begin(); e != fir[x].end();
             ++e)
          if (state[y = *e] == -1) {
            state[y] = state[x] ^ 1;
            q.push(y);
          }
      }
}
int main() {
  Init();
  Work();
  return 0;
}