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 <typename T>
T abs(T a) {
  return a < 0 ? -a : a;
}
template <typename T>
T sqr(T a) {
  return a * a;
}
const int INF = (int)1e9;
const long double EPS = 1e-9;
const long double PI = 3.1415926535897932384626433832795;
const int N = 200000;
int n, m, k;
vector<int> g[N];
int cnt[N];
int col[N];
int ans[N];
int cused;
int used[N];
int cused2;
int ua[2][N];
void dfs(int v) {
  for (int i = 0; i < int(int((g[v]).size())); ++i) {
    int u = g[v][i];
    if (col[u] == -1) {
      col[u] = 1 - col[v];
      cnt[col[u]]++;
      dfs(u);
    }
  }
}
bool paintOne(int c) {
  for (int v = 0; v < int(n); ++v)
    if (col[v] == c && int((g[v]).size()) + 2 <= cnt[1 - c]) {
      cused++;
      for (int i = 0; i < int(int((g[v]).size())); ++i) used[g[v][i]] = cused;
      ans[v] = k - 1;
      int cn = 2;
      for (int u = 0; u < int(n); ++u)
        if (col[u] != c && used[u] < cused) {
          cn--;
          ans[u] = k - 1;
          if (cn == 0) break;
        }
      return true;
    }
  cused2++;
  vector<int> b;
  for (int v = 0; v < int(n); ++v)
    if (col[v] == 1 - c && int((g[v]).size()) + 2 <= cnt[c]) {
      b.push_back(v);
      for (int i = 0; i < int(int((g[v]).size())); ++i)
        ua[int((b).size()) - 1][g[v][i]] = cused2;
      if (int((b).size()) == 2) break;
    }
  vector<int> a[2];
  for (int v = 0; v < int(n); ++v) {
    if (col[v] == 1 - c) continue;
    for (int i = 0; i < int(2); ++i)
      if (ua[i][v] != cused2 && int((a[i]).size()) < 2) {
        a[i].push_back(v);
        break;
      }
  }
  if (int((b).size()) != 2 || int((a[0]).size()) != 2 ||
      int((a[1]).size()) != 2)
    return false;
  for (int i = 0; i < int(2); ++i) {
    ans[b[i]] = k - 1 - i;
    for (int j = 0; j < int(2); ++j) ans[a[i][j]] = k - 1 - i;
  }
  return true;
}
int main() {
  cin >> n >> m;
  k = n / 3;
  for (int i = 0; i < int(m); ++i) {
    int x, y;
    scanf("%d %d", &x, &y);
    x--;
    y--;
    g[x].push_back(y);
    g[y].push_back(x);
  }
  memset(col, -1, sizeof(col));
  for (int i = 0; i < int(n); ++i) {
    if (col[i] == -1) {
      col[i] = 0;
      cnt[0]++;
      dfs(i);
    }
  }
  memset(ans, -1, sizeof(ans));
  if (cnt[0] % 3 == 1) {
    if (!paintOne(0)) {
      puts("NO");
      return 0;
    }
  }
  if (cnt[1] % 3 == 1) {
    if (!paintOne(1)) {
      puts("NO");
      return 0;
    }
  }
  vector<int> f[2];
  for (int i = 0; i < int(2); ++i) f[i].reserve(n);
  for (int i = 0; i < int(n); ++i)
    if (ans[i] == -1) f[col[i]].push_back(i);
  int cans = 0;
  for (int i = 0; i < int(2); ++i)
    for (int j = 0; j < int((f[i]).size()); j += 3) {
      for (int k = j; k < j + 3; ++k) ans[f[i][k]] = cans;
      cans++;
    }
  puts("YES");
  for (int i = 0; i < int(n); ++i) {
    if (i != 0) printf(" ");
    printf("%d", ans[i] + 1);
  }
  puts("");
  return 0;
}