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;
vector<int> fo[100010];
vector<int> L, R;
bool used[100010];
void dfs(int vr, int sd) {
  used[vr] = true;
  if (sd == 0)
    L.push_back(vr);
  else
    R.push_back(vr);
  for (int i = 0; i < fo[vr].size(); ++i)
    if (!used[fo[vr][i]]) dfs(fo[vr][i], sd ^ 1);
}
set<int> ban;
int U[100010], ust = 1;
int get(int vr, int sd) {
  ++ust;
  for (int i = 0; i < ((int)(fo[vr]).size()); ++i) U[fo[vr][i]] = ust;
  if (sd == 0) {
    for (int i = 0; i < ((int)(R).size()); ++i)
      if (U[R[i]] != ust) return R[i];
  } else {
    for (int i = 0; i < ((int)(L).size()); ++i)
      if (U[L[i]] != ust) return L[i];
  }
  return -1;
}
vector<int> tmp;
vector<int> OK[100010];
int cont[100010], BR = 1;
void add(int a, int b, int c) {
  ban.insert(a);
  ban.insert(b);
  ban.insert(c);
  cont[a] = BR;
  cont[b] = BR;
  cont[c] = BR++;
}
int main() {
  bool SOL = true;
  scanf("%d%d", &N, &M);
  for (int i = 0; i < M; ++i) {
    int f, t;
    scanf("%d%d", &f, &t);
    --f;
    --t;
    fo[f].push_back(t);
    fo[t].push_back(f);
  }
  for (int i = 0; i < N; ++i)
    if (!used[i]) dfs(i, 0);
  int ANS = -1;
  if (((int)(L).size()) % 3 != 0) {
    if (((int)(L).size()) % 3 == 2) swap(L, R);
    for (int i = 0; i < ((int)(L).size()); ++i) {
      int T = L[i];
      if (((int)(fo[T]).size()) < ((int)(R).size()) - 1) {
        ANS = T;
        goto FIX;
      } else if (((int)(fo[T]).size()) == ((int)(R).size()) - 1)
        OK[get(T, 0)].push_back(T);
    }
  FIX:
    if (ANS != -1) {
      ++ust;
      tmp.clear();
      for (int i = 0; i < fo[ANS].size(); ++i) U[fo[ANS][i]] = ust;
      for (int i = 0; i < ((int)(R).size()); ++i)
        if (U[R[i]] != ust) tmp.push_back(R[i]);
      ban.insert(tmp[0]);
      ban.insert(tmp[1]);
      ban.insert(ANS);
      cont[tmp[0]] = BR;
      cont[tmp[1]] = BR;
      cont[ANS] = BR++;
    } else {
      tmp.clear();
      for (int i = 0; i < ((int)(R).size()); ++i)
        if (((int)(OK[R[i]]).size()) > 1) tmp.push_back(R[i]);
      if (((int)(tmp).size()) >= 2) {
        int A = tmp[0], B = tmp[1];
        add(A, OK[A][0], OK[A][1]);
        add(B, OK[B][0], OK[B][1]);
      } else
        SOL = false;
    }
  }
  if (!SOL)
    printf("NO\n");
  else {
    tmp.clear();
    for (int i = 0; i < ((int)(L).size()); ++i) {
      if (ban.count(L[i])) continue;
      tmp.push_back(L[i]);
      if (((int)(tmp).size()) == 3) {
        add(tmp[0], tmp[1], tmp[2]);
        tmp.clear();
      }
    }
    if (((int)(tmp).size()) == 3) {
      add(tmp[0], tmp[1], tmp[2]);
      tmp.clear();
    }
    tmp.clear();
    for (int i = 0; i < ((int)(R).size()); ++i) {
      if (ban.count(R[i])) continue;
      tmp.push_back(R[i]);
      if (((int)(tmp).size()) == 3) {
        add(tmp[0], tmp[1], tmp[2]);
        tmp.clear();
      }
    }
    if (((int)(tmp).size()) == 3) {
      add(tmp[0], tmp[1], tmp[2]);
      tmp.clear();
    }
    printf("YES\n");
    for (int i = 0; i < N; ++i)
      printf("%d%c", cont[i], (i + 1 == N) ? '\n' : ' ');
  }
  return 0;
}