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 N = 100003;
vector<int> adj[N];
int vis[N];
int res[N];
vector<int> v[2];
int n;
void dfs(int u, int k) {
  vis[u] = k + 1;
  v[k].push_back(u);
  for (vector<int>::iterator it = adj[u].begin(); it != adj[u].end(); ++it)
    if (!vis[*it]) dfs(*it, 1 - k);
}
bool is_edge(int u, int v) {
  int i = lower_bound(adj[u].begin(), adj[u].end(), v) - adj[u].begin();
  return i < (int)adj[u].size() && adj[u][i] == v;
}
void fill_res(int u, int x) {
  res[u] = x;
  int t = 0;
  for (int v = 1; v <= n && t < 2; ++v)
    if (vis[u] != vis[v] && !is_edge(u, v)) {
      res[v] = x;
      ++t;
    }
}
bool solve() {
  if (v[0].size() % 3 == 2) swap(v[0], v[1]);
  int c = 1;
  if (v[0].size() % 3 == 1) {
    int x = -1;
    for (vector<int>::iterator it = v[0].begin(); it != v[0].end(); ++it)
      if (adj[*it].size() <= v[1].size() - 2) {
        x = *it;
        break;
      }
    if (x != -1)
      fill_res(x, c++);
    else {
      vector<int> p;
      for (vector<int>::iterator it = v[1].begin(); it != v[1].end(); ++it)
        if ((int)adj[*it].size() <= (int)v[0].size() - 2) p.push_back(*it);
      if (p.size() < 2) return false;
      fill_res(p[0], c++);
      fill_res(p[1], c++);
    }
  }
  for (int k = 0; k < 2; ++k) {
    for (vector<int>::iterator it = v[k].begin(); it != v[k].end();)
      if (!res[*it])
        ++it;
      else {
        swap(*it, v[k].back());
        v[k].pop_back();
      }
    for (int i = 0; i < (int)v[k].size(); i += 3, c++)
      res[v[k][i]] = res[v[k][i + 1]] = res[v[k][i + 2]] = c;
  }
  return true;
}
int main() {
  int m;
  scanf("%d%d", &n, &m);
  while (m--) {
    int u, v;
    scanf("%d%d", &u, &v);
    adj[u].push_back(v);
    adj[v].push_back(u);
  }
  for (int u = 1; u <= n; ++u) {
    sort(adj[u].begin(), adj[u].end());
    if (!vis[u]) dfs(u, 0);
  }
  if (!solve())
    puts("NO");
  else {
    puts("YES");
    for (int u = 1; u <= n; ++u) {
      if (u > 1) printf(" ");
      printf("%d", res[u]);
    }
    printf("\n");
  }
  return 0;
}