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, a, b, wsk, ile;
vector<int> v[((int)(1e5) + 5)];
vector<int> zbior[2];
bitset<((int)(1e5) + 5)> odw, sasiad;
int odp[((int)(1e5) + 5)];
int inf = (1e9) + 2137;
void wypisz_wejscie() {
  fprintf(stdout, "%d %d\n", n, m);
  for (int i = 1; i <= n; ++i) {
    int l = v[i].size();
    for (int j = 0; j < l; ++j) {
      if (i < v[i][j]) {
        fprintf(stdout, "%d %d\n", i, v[i][j]);
      }
    }
  }
}
bool comp(int a, int b) {
  if (v[a].size() < v[b].size()) {
    return true;
  }
  if (v[a].size() > v[b].size()) {
    return false;
  }
  if (a < b) {
    return true;
  }
  return false;
}
void dfs(int x, int y) {
  odw[x] = true;
  int l = v[x].size();
  zbior[y].emplace_back(x);
  for (int i = 0; i < l; ++i) {
    if (!odw[v[x][i]]) {
      dfs(v[x][i], y ^ 1);
    }
  }
}
void ustaw(int x) {
  odp[x] = wsk;
  ++ile;
  if (ile == 3) {
    ile = 0;
    ++wsk;
  }
}
int deg(int x) { return v[x].size(); }
void ustaw_sasiadow(int x) {
  sasiad.reset();
  int l = v[x].size();
  for (int i = 0; i < l; ++i) {
    sasiad[v[x][i]] = true;
  }
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= m; ++i) {
    scanf("%d%d", &a, &b);
    v[a].emplace_back(b);
    v[b].emplace_back(a);
  }
  for (int i = 1; i <= n; ++i) {
    if (!odw[i]) {
      dfs(i, 0);
    }
  }
  odw.reset();
  wsk = 1;
  if (zbior[0].size() % 3) {
    if (zbior[0].size() % 3 == 2) {
      swap(zbior[0], zbior[1]);
    }
    sort(zbior[0].begin(), zbior[0].end(), comp);
    sort(zbior[1].begin(), zbior[1].end(), comp);
    bool ok = false;
    if (zbior[0].size() >= 1 && zbior[1].size() >= 2) {
      if (deg(zbior[0][0]) <= zbior[1].size() - 2) {
        ok = true;
        ustaw(zbior[0][0]);
        ustaw_sasiadow(zbior[0][0]);
        int l = zbior[1].size();
        for (int i = 0; i < l; ++i) {
          if (!sasiad[zbior[1][i]]) {
            ustaw(zbior[1][i]);
            if (!ile) {
              break;
            }
          }
        }
      }
    }
    if (!ok && zbior[0].size() >= 4 && zbior[1].size() >= 2) {
      if (deg(zbior[1][0]) <= zbior[0].size() - 2 &&
          deg(zbior[1][1]) <= zbior[0].size() - 2) {
        ok = true;
        ustaw_sasiadow(zbior[1][0]);
        ustaw(zbior[1][0]);
        int l = zbior[0].size();
        for (int i = 0; i < l; ++i) {
          if (!sasiad[zbior[0][i]]) {
            ustaw(zbior[0][i]);
            if (!ile) {
              break;
            }
          }
        }
        ustaw_sasiadow(zbior[1][1]);
        ustaw(zbior[1][1]);
        for (int i = 0; i < l; ++i) {
          if (odp[zbior[0][i]]) {
            continue;
          }
          if (!sasiad[zbior[0][i]]) {
            ustaw(zbior[0][i]);
            if (!ile) {
              break;
            }
          }
        }
      }
    }
    if (!ok) {
      fprintf(stdout, "NO\n");
      return 0;
    }
  }
  int l = zbior[0].size();
  for (int i = 0; i < l; ++i) {
    if (odp[zbior[0][i]]) {
      continue;
    }
    ustaw(zbior[0][i]);
  }
  l = zbior[1].size();
  for (int i = 0; i < l; ++i) {
    if (odp[zbior[1][i]]) {
      continue;
    }
    ustaw(zbior[1][i]);
  }
  fprintf(stdout, "YES\n");
  for (int i = 1; i <= n; ++i) {
    fprintf(stdout, "%d ", odp[i]);
  }
  return 0;
}