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;
int kolCol[3];
int used[100000];
int ans[100000];
vector<vector<int> > gr;
vector<vector<int> > vis;
void dfs(int v, int col) {
  used[v] = col;
  kolCol[col]++;
  for (int i = 0; i < gr[v].size(); i++) {
    int v1 = gr[v][i];
    if (!used[v1]) dfs(v1, 3 - col);
  }
}
void paint() {
  int ansind = 0;
  for (int col = 1; col <= 2; col++)
    for (int i = 0; i < n; i++)
      if (used[i] == col) {
        ans[i] = ansind / 3 + 1;
        ansind++;
      }
}
void writeAns() {
  printf("YES\n");
  for (int i = 0; i < n; i++)
    if (i + 1 < n)
      printf("%d ", ans[i]);
    else
      printf("%d\n", ans[i]);
}
int main() {
  scanf("%d%d", &n, &m);
  gr.assign(n, vector<int>(0));
  for (int i = 0; i < m; i++) {
    int v1, v2;
    scanf("%d%d", &v1, &v2);
    v1--;
    v2--;
    gr[v1].push_back(v2);
    gr[v2].push_back(v1);
  }
  kolCol[1] = 0;
  kolCol[2] = 0;
  for (int i = 0; i < n; i++)
    if (!used[i]) dfs(i, 1);
  if (kolCol[1] % 3 == 0) {
    paint();
    writeAns();
    return 0;
  }
  if (kolCol[1] % 3 == 2) {
    for (int i = 0; i < n; i++) used[i] = 3 - used[i];
    int t = kolCol[1];
    kolCol[1] = kolCol[2];
    kolCol[2] = t;
  }
  vector<int> d1(0), d2(0);
  for (int i = 0; i < n; i++)
    if (used[i] == 1)
      d1.push_back(i);
    else
      d2.push_back(i);
  for (int i = 0; i < n; i++)
    if (used[i] == 1 && gr[i].size() + 2 <= kolCol[2]) {
      int ind = 0;
      vector<int> used1(n, 0);
      for (int j = 0; j < gr[i].size(); j++) used1[gr[i][j]] = 1;
      ans[i] = n / 3;
      used[i] = 0;
      ind = 0;
      for (int j = 0; j < n && ind < 2; j++)
        if (used[j] == 2 && used1[j] == 0) {
          used[j] = 0;
          ind++;
          ans[j] = n / 3;
        }
      paint();
      writeAns();
      return 0;
    }
  if (kolCol[1] < 4 || kolCol[2] < 2) {
    printf("NO\n");
    return 0;
  }
  vis.assign(n, vector<int>(0));
  vector<int> used1(n, 0);
  int used1ind = 1;
  for (int i = 0; i < n; i++)
    if (used[i] == 1) {
      for (int j = 0; j < gr[i].size(); j++) used1[gr[i][j]] = used1ind;
      used1ind++;
      for (int j = 0; j < d2.size(); j++) {
        int v2 = d2[j];
        if (used1[v2] + 1 != used1ind) vis[v2].push_back(i);
      }
    }
  int kol = 0;
  for (int i = 0; i < n; i++)
    if (used[i] == 2)
      if (vis[i].size() >= 2) kol++;
  if (kol <= 1) {
    printf("NO\n");
    return 0;
  }
  kol = 0;
  for (int i = 0; i < n; i++)
    if (used[i] == 2)
      if (vis[i].size() >= 2) {
        ans[i] = n / 3 - kol;
        used[i] = 0;
        for (int j = 0; j < 2; j++) {
          int v = vis[i][j];
          used[v] = 0;
          ans[v] = n / 3 - kol;
        }
        kol++;
        if (kol == 2) break;
      }
  paint();
  writeAns();
  return 0;
}