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 = 100050;
int n, m, k;
vector<int> buf[maxn];
vector<int> l, r;
int len[maxn];
int ans[maxn] = {};
int tmp[maxn] = {};
inline bool isin(int t, const vector<int> &s) {
  return binary_search(s.begin(), s.end(), t);
}
void getans() {
  int num = 1, ct = 0;
  for (int i = 0; i < (l.size()); ++i)
    if (ans[l[i]] == -1) {
      ans[l[i]] = num;
      ++ct;
      if (ct >= 3) ct -= 3, ++num;
    }
  for (int i = 0; i < (r.size()); ++i)
    if (ans[r[i]] == -1) {
      ans[r[i]] = num;
      ++ct;
      if (ct >= 3) ct -= 3, ++num;
    }
  puts("YES");
  for (int i = 0; i < (n); ++i) printf("%d ", ans[i]);
  puts("");
}
bool can(vector<int> &l, vector<int> &r, int no) {
  bool done = false;
  for (vector<int>::iterator it = (l).begin(); it != (l).end(); ++it)
    if ((int)buf[*it].size() <= (int)r.size() - 2) {
      done = true;
      ans[*it] = no;
      int count = 0;
      for (vector<int>::iterator iit = (r).begin(); iit != (r).end(); ++iit)
        if (!isin(*iit, buf[*it])) {
          ++count;
          ans[*iit] = no;
          if (count >= 2) break;
        }
      break;
    }
  return done;
}
int onlynot(int a, vector<int> &v) {
  for (vector<int>::iterator it = (v).begin(); it != (v).end(); ++it)
    if (!isin(*it, buf[a])) return *it;
  return -1;
}
int main(void) {
  memset(ans, -1, sizeof ans);
  scanf("%d%d", &n, &m);
  k = n / 3;
  for (int i = 0; i < (m); ++i) {
    int a, b;
    scanf("%d%d", &a, &b);
    --a;
    --b;
    buf[a].push_back(b);
    buf[b].push_back(a);
  }
  for (int i = 0; i < (m); ++i) sort(buf[i].begin(), buf[i].end());
  memset(len, -1, sizeof len);
  for (int i = 0; i < (n); ++i)
    if (len[i] < 0) {
      len[i] = 0;
      queue<int> q;
      q.push(i);
      while (!q.empty()) {
        int x = q.front();
        q.pop();
        for (vector<int>::iterator it = (buf[x]).begin(); it != (buf[x]).end();
             ++it)
          if (len[*it] < 0) {
            len[*it] = len[x] + 1;
            q.push(*it);
          }
      }
    }
  for (int i = 0; i < (n); ++i)
    if (len[i] & 1)
      l.push_back(i);
    else
      r.push_back(i);
  if (l.size() % 3 > r.size() % 3) l.swap(r);
  if (l.size() % 3 == 1) {
    if (!can(l, r, k)) {
      vector<int> nl(l.size());
      for (int i = 0; i < (l.size()); ++i) nl[i] = onlynot(l[i], r);
      for (vector<int>::iterator it = (nl).begin(); it != (nl).end(); ++it)
        if (*it >= 0) ++tmp[*it];
      int ct = 0;
      for (int i = 0; i < (n); ++i)
        if (tmp[i] >= 2) ++ct;
      if (ct < 2) {
        puts("NO");
        return 0;
      }
      ct = 0;
      for (int i = 0; i < (n); ++i)
        if (tmp[i] >= 2) {
          ans[i] = k - ct;
          int c = 0;
          for (int j = 0; j < (nl.size()); ++j)
            if (nl[j] == i) {
              ans[l[j]] = k - ct;
              ++c;
              if (c >= 2) break;
            }
          ++ct;
          if (ct >= 2) break;
        }
    }
  }
  getans();
  return 0;
}