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;
int n, m, x, y, col[111111], used[111111], size;
vector<int> g[111111], L, R, mat[111111];
void paint(int id, int c) {
  col[id] = c;
  c == 1 ? L.push_back(id) : R.push_back(id);
  for (vector<int>::iterator ii = g[id].begin(); ii != g[id].end(); ii++)
    if (!col[*ii]) paint(*ii, c ^ 3);
}
void construct() {
  int now = ++size, cnt = 0;
  for (vector<int>::iterator ii = L.begin(); ii != L.end(); ii++) {
    if (used[*ii]) continue;
    used[*ii] = now;
    cnt++;
    if (cnt == 3) {
      cnt = 0;
      now = ++size;
    }
  }
  for (vector<int>::iterator ii = R.begin(); ii != R.end(); ii++) {
    if (used[*ii]) continue;
    used[*ii] = now;
    cnt++;
    if (cnt == 3) {
      cnt = 0;
      now = ++size;
    }
  }
}
void print() {
  printf("YES\n");
  for (int i = 1; i <= n; i++) printf("%d ", used[i]);
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 0; i < m; i++) {
    scanf("%d%d", &x, &y);
    g[x].push_back(y);
    g[y].push_back(x);
  }
  for (int i = 1; i <= n; i++)
    if (!col[i]) paint(i, 1);
  if (L.size() % 3 == 0 && R.size() % 3 == 0) {
    construct();
    print();
    return 0;
  } else {
    if (L.size() % 3 == 2 && R.size() % 3 == 1) L.swap(R);
    sort(L.begin(), L.end());
    sort(R.begin(), R.end());
    for (int i = 1; i <= n; i++) sort(g[i].begin(), g[i].end());
    for (vector<int>::iterator ii = L.begin(); ii != L.end(); ii++)
      if (R.size() - g[*ii].size() > 1) {
        int cnt = 0;
        used[*ii] = 1;
        vector<int>::iterator pp = g[*ii].begin();
        for (vector<int>::iterator jj = R.begin(); jj != R.end() && cnt < 2;
             jj++) {
          while (pp != g[*ii].end() && *jj > *pp) pp++;
          if (pp != g[*ii].end() && *pp == *jj) continue;
          used[*jj] = 1;
          cnt++;
        }
        size = 1;
        construct();
        print();
        return 0;
      }
    for (vector<int>::iterator ii = R.begin(); ii != R.end(); ii++)
      if (L.size() - g[*ii].size() > 1) {
        int cnt = 0;
        vector<int>::iterator pp = g[*ii].begin();
        for (vector<int>::iterator jj = L.begin(); jj != L.end() && cnt < 2;
             jj++) {
          while (pp != g[*ii].end() && *jj > *pp) pp++;
          if (pp != g[*ii].end() && *pp == *jj) continue;
          cnt++;
          mat[*ii].push_back(*jj);
        }
      }
    for (vector<int>::iterator ii = R.begin(); ii != R.end(); ii++)
      if (mat[*ii].size() > 1)
        for (vector<int>::iterator jj = ii + 1; jj != R.end(); jj++)
          if (mat[*jj].size() > 1) {
            used[*ii] = used[mat[*ii][0]] = used[mat[*ii][1]] = 1;
            used[*jj] = used[mat[*jj][0]] = used[mat[*jj][1]] = 2;
            size = 2;
            construct();
            print();
            return 0;
          }
  }
  printf("NO\n");
}