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 = 100000;
int curr_triple_color = 1;
int ans[MaxN];
set<int> lv, rv;
vector<int> graph[MaxN];
vector<int> antigraph[MaxN];
void add_triple(int v1, int v2, int v3) {
  ans[v1] = curr_triple_color;
  ans[v2] = curr_triple_color;
  ans[v3] = curr_triple_color;
  curr_triple_color++;
}
void extract_triple(set<int>& left, set<int>& right, int lv1, int rv1,
                    int rv2) {
  add_triple(lv1, rv1, rv2);
  left.erase(lv1);
  right.erase(rv1);
  right.erase(rv2);
}
void bfs(int v, vector<int>& color) {
  queue<int> q;
  q.push(v);
  if (!color[v]) color[v] = 1;
  while (!q.empty()) {
    int vv = q.front();
    q.pop();
    for (int i = 0; i < graph[vv].size(); i++) {
      int adj_v = graph[vv][i];
      if (!color[adj_v]) {
        color[adj_v] = 3 - color[vv];
        q.push(adj_v);
      }
    }
  }
}
inline void split_graph(int vertices_count) {
  vector<int> color(vertices_count);
  for (int v = 0; v < vertices_count; v++) bfs(v, color);
  for (int v = 0; v < vertices_count; v++)
    if (color[v] == 1)
      lv.insert(v);
    else
      rv.insert(v);
}
void find_one_another(int v, const set<int>& vv, int& v1) {
  vector<int> tmp(MaxN, 0);
  for (auto adj : graph[v]) tmp[adj] = 1;
  for (auto s : vv)
    if (!tmp[s]) {
      v1 = s;
      break;
    }
}
void find_two_other(int v, const set<int>& vv, int& v1, int& v2) {
  vector<int> tmp(MaxN, 0);
  for (auto adj : graph[v]) tmp[adj] = 1;
  v1 = v2 = -1;
  for (auto s : vv)
    if (!tmp[s]) {
      if (v1 == -1) {
        v1 = s;
      } else {
        v2 = s;
        break;
      };
    }
}
bool solve(set<int>& left, set<int>& right) {
  for (auto lv : left) {
    int rv1, rv2;
    if (graph[lv].size() <= right.size() - 2) {
      find_two_other(lv, right, rv1, rv2);
      extract_triple(left, right, lv, rv1, rv2);
      return true;
    }
    if (graph[lv].size() == right.size() - 1) {
      find_one_another(lv, right, rv1);
      antigraph[rv1].push_back(lv);
    }
  }
  int rv1 = -1, rv2 = -1;
  for (auto rv : right)
    if (antigraph[rv].size() >= 2) {
      if (rv1 == -1) {
        rv1 = rv;
      } else {
        rv2 = rv;
        break;
      }
    }
  if (rv1 != -1 && rv2 != -1) {
    int lv1 = antigraph[rv1][0];
    int lv2 = antigraph[rv1][1];
    extract_triple(right, left, rv1, lv1, lv2);
    lv1 = antigraph[rv2][0];
    lv2 = antigraph[rv2][1];
    extract_triple(right, left, rv2, lv1, lv2);
    return true;
  }
  return false;
}
int main() {
  int n, m;
  scanf("%d %d", &n, &m);
  for (int i = 0; i < m; i++) {
    int a, b;
    scanf("%d %d", &a, &b);
    a--;
    b--;
    graph[a].push_back(b);
    graph[b].push_back(a);
  }
  split_graph(n);
  bool ok = false;
  int rem = lv.size() % 3;
  if (rem == 1)
    ok = solve(lv, rv);
  else if (rem == 2)
    ok = solve(rv, lv);
  else
    ok = true;
  if (!ok) {
    printf("NO");
    return 0;
  }
  int cc = 1;
  int a, b;
  for (int v : lv) {
    if (cc == 1)
      a = v;
    else if (cc == 2)
      b = v;
    else {
      add_triple(a, b, v);
      cc = 0;
    }
    cc++;
  }
  for (int v : rv) {
    if (cc == 1)
      a = v;
    else if (cc == 2)
      b = v;
    else {
      add_triple(a, b, v);
      cc = 0;
    }
    cc++;
  }
  printf("YES\n");
  for (int i = 0; i < n; i++) printf("%d ", ans[i]);
}