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>
#pragma comment(linker, "/STACK:10000000000")
using namespace std;
const int MOD = 1000000007;
const int INF = 1000000007LL;
const long long INF2 = 1000000007LL * 1000000007LL;
const long double EPS = 1e-9;
const int SIZE = 100100;
mt19937 rng(time(0));
uniform_int_distribution<int> uid(-1000000000, 1000000000);
int n, m, k;
vector<int> g[SIZE], r[2], gn[SIZE];
int u[SIZE];
int u1[SIZE];
int a, b;
void dfs(int v, int c = 1) {
  if (u1[v]) return;
  u1[v] = c;
  r[c - 1].push_back(v);
  for (auto& i : g[v]) dfs(i, 3 - c);
}
bool cmp(int x, int y) { return g[x].size() < g[y].size(); }
vector<int> opposite(int x) {
  set<int> st;
  for (int i = 0; i < n; ++i) st.insert(i);
  for (auto& i : g[x]) st.erase(i);
  vector<int> rs;
  for (auto& i : st) {
    if (u1[i] == u1[x]) continue;
    rs.push_back(i);
    if (rs.size() == 2) break;
  }
  return rs;
}
bool cmp2(int x, int y) { return gn[x].size() > gn[y].size(); }
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n >> m;
  k = n - 1;
  for (int rep_iter = 0; rep_iter < m; ++rep_iter) {
    cin >> a >> b;
    --a;
    --b;
    g[a].push_back(b);
    g[b].push_back(a);
  }
  for (int i = 0; i < n; ++i) {
    sort(begin(g[i]), end(g[i]));
  }
  for (int i = 0; i < n; ++i) {
    dfs(i);
  }
  if (r[0].size() % 3 == 0) {
    for (auto& i : r[0]) {
      u[i] = k / 3 + 1;
      --k;
    }
    for (auto& i : r[1]) {
      u[i] = k / 3 + 1;
      --k;
    }
    cout << "YES\n";
    for (int i = 0; i < n; ++i) {
      cout << u[i] << ' ';
    }
    return 0;
  }
  if (r[1].size() % 3 == 1) swap(r[0], r[1]);
  sort(begin(r[0]), end(r[0]), cmp);
  if (g[r[0][0]].size() <= r[1].size() - 2) {
    vector<int> x = opposite(r[0][0]);
    u[r[0][0]] = k / 3 + 1;
    for (auto& i : x) u[i] = k / 3 + 1;
    x.push_back(r[0][0]);
    k -= 3;
    for (auto& i : r[0]) {
      if ((find(begin(x), end(x), i) != end(x))) continue;
      u[i] = k / 3 + 1;
      --k;
    }
    for (auto& i : r[1]) {
      if ((find(begin(x), end(x), i) != end(x))) continue;
      u[i] = k / 3 + 1;
      --k;
    }
    cout << "YES\n";
    for (int i = 0; i < n; ++i) {
      cout << u[i] << ' ';
    }
    return 0;
  }
  for (auto& i : r[0]) {
    if (g[i].size() == r[1].size()) break;
    gn[opposite(i)[0]].push_back(i);
  }
  sort(begin(r[1]), end(r[1]), cmp2);
  if (gn[r[1][1]].size() < 2) {
    cout << "NO";
    return 0;
  }
  vector<int> x;
  x.push_back(r[1][0]);
  x.push_back(gn[r[1][0]][0]);
  x.push_back(gn[r[1][0]][1]);
  x.push_back(r[1][1]);
  x.push_back(gn[r[1][1]][0]);
  x.push_back(gn[r[1][1]][1]);
  for (auto& i : x) {
    u[i] = k / 3 + 1;
    --k;
  }
  for (auto& i : r[0]) {
    if ((find(begin(x), end(x), i) != end(x))) continue;
    u[i] = k / 3 + 1;
    --k;
  }
  for (auto& i : r[1]) {
    if ((find(begin(x), end(x), i) != end(x))) continue;
    u[i] = k / 3 + 1;
    --k;
  }
  cout << "YES\n";
  for (int i = 0; i < n; ++i) {
    cout << u[i] << ' ';
  }
  return 0;
}