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 long double PI = 3.141592653589793238462643l;
vector<int> e[100010];
int c[100010];
void dfs(int x, int q, vector<int> *v) {
  if (c[x] != -1) {
    return;
  }
  c[x] = q;
  v[q].push_back(x);
  for (int i = 0; i < int(e[x].size()); i++) {
    dfs(e[x][i], q ^ 1, v);
  }
}
int n;
int u[100010];
bool solve(vector<int> v[][2]) {
  for (int i = 1; i < 3; i++) {
    for (int q = 0; q < int(2); q++) {
      for (int j = 0; j < int(v[i][q].size()); j++) {
        v[0][q].push_back(v[i][q][j]);
      }
    }
  }
  if (v[0][0].size() % 3 == 2) {
    swap(v[0][0], v[0][1]);
  }
  memset(u, 0, sizeof u);
  int k = 0;
  for (int i = 0; i < int(n); i++) {
    c[i] = -1;
  }
  int ii;
  if (v[0][0].size() % 3) {
    for (ii = 0; ii < v[0][0].size(); ii++) {
      if (e[v[0][0][ii]].size() < v[0][1].size() - 1) {
        break;
      }
    }
    if (ii < v[0][0].size()) {
      u[v[0][0][ii]] = 1;
      k = 1;
      c[v[0][0][ii]] = 0;
      for (int i = 0; i < int(v[0][1].size()); i++) {
        u[v[0][1][i]] = 1;
      }
      for (int i = 0; i < int(e[v[0][0][ii]].size()); i++) {
        u[e[v[0][0][ii]][i]] = 0;
      }
      int qwe = 0;
      for (int i = 0; i < int(v[0][1].size()); i++) {
        if (u[v[0][1][i]]) {
          if (qwe < 2) {
            c[v[0][1][i]] = 0;
          } else {
            u[v[0][1][i]] = 0;
          }
          qwe++;
        }
      }
    } else {
      for (ii = 0; ii < v[0][1].size(); ii++) {
        if (e[v[0][1][ii]].size() < v[0][0].size() - 1) {
          break;
        }
      }
      int jj = ii;
      for (ii = jj + 1; ii < v[0][1].size(); ii++) {
        if (e[v[0][1][ii]].size() < v[0][0].size() - 1) {
          break;
        }
      }
      if (ii < v[0][1].size()) {
        u[v[0][1][ii]] = 1;
        u[v[0][1][jj]] = 1;
        k = 2;
        c[v[0][1][ii]] = 0;
        c[v[0][1][jj]] = 1;
        for (int i = 0; i < int(v[0][0].size()); i++) {
          u[v[0][0][i]] = 2;
        }
        for (int i = 0; i < int(e[v[0][1][ii]].size()); i++) {
          u[e[v[0][1][ii]][i]]--;
        }
        int qwe = 0;
        for (int i = 0; i < int(v[0][0].size()); i++) {
          if (u[v[0][0][i]] == 2) {
            if (qwe < 2) {
              c[v[0][0][i]] = 0;
            } else {
              u[v[0][0][i]]--;
            }
            qwe++;
          }
        }
        for (int i = 0; i < int(e[v[0][1][jj]].size()); i++) {
          u[e[v[0][1][jj]][i]]--;
        }
        qwe = 0;
        for (int i = 0; i < int(v[0][0].size()); i++) {
          if (u[v[0][0][i]] && c[v[0][0][i]] == -1) {
            if (qwe < 2) {
              c[v[0][0][i]] = 1;
            } else {
              u[v[0][0][i]]--;
            }
            qwe++;
          }
        }
      } else {
        return 0;
      }
    }
  }
  int l = 0;
  for (int i = 0; i < int(v[0][0].size()); i++) {
    if (!u[v[0][0][i]]) {
      c[v[0][0][i]] = k;
      l++;
      if (l == 3) {
        k++;
        l = 0;
      }
    }
  }
  for (int i = 0; i < int(v[0][1].size()); i++) {
    if (!u[v[0][1][i]]) {
      c[v[0][1][i]] = k;
      l++;
      if (l == 3) {
        k++;
        l = 0;
      }
    }
  }
  puts("YES");
  for (int i = 0; i < int(n); i++) {
    printf("%d", c[i] + 1);
    if (i < n - 1) {
      printf(" ");
    }
  }
  puts("");
  return 1;
}
vector<int> v[100010][2], w[3][2];
int main() {
  int m;
  cin >> n >> m;
  for (int i = 0; i < int(m); i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    x--;
    y--;
    e[x].push_back(y);
    e[y].push_back(x);
  }
  memset(c, -1, sizeof c);
  int k = 0;
  for (int i = 0; i < int(n); i++) {
    dfs(i, 0, v[k]);
    if (v[k][0].size()) {
      k++;
    }
  }
  int ii;
  for (ii = 0; ii < k; ii++) {
    if ((v[ii][0].size() - v[ii][1].size()) % 3) {
      break;
    }
  }
  if (ii < k) {
    swap(v[0][0], v[ii][0]);
    swap(v[0][1], v[ii][1]);
  }
  for (ii = 1; ii < k; ii++) {
    if ((v[ii][0].size() - v[ii][1].size()) % 3) {
      break;
    }
  }
  if (ii < k) {
    swap(v[1][0], v[ii][0]);
    swap(v[1][1], v[ii][1]);
  }
  for (int i = 3; i < k; i++) {
    for (int q = 0; q < int(2); q++) {
      for (int j = 0; j < int(v[i][q].size()); j++) {
        v[2][q].push_back(v[i][q][j]);
      }
    }
  }
  bool b[3];
  int x[3][2];
  for (int i = 0; i < int(3); i++) {
    for (int q = 0; q < int(2); q++) {
      x[i][q] = v[i][q].size() % 3;
    }
    b[i] = (x[i][0] != x[i][1]);
  }
  for (int mask = 0; mask < int(4); mask++) {
    bool I[3];
    for (int i = 0; i < int(3); i++) {
      I[i] = (mask & (1 << i));
    }
    for (int i = 0; i < int(3); i++) {
      for (int q = 0; q < int(2); q++) {
        w[i][q] = v[i][q ^ I[i]];
      }
    }
    if (solve(w)) {
      return 0;
    }
  }
  puts("NO");
  return 0;
}