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:32000000")
using namespace std;
int GetReversed(int col) {
  if (col == 1) {
    return 2;
  } else {
    return 1;
  }
}
long long n, m, x, y, k1, k2;
bool met[100010];
int col[100010], ans[100010];
vector<int> edge[100010];
vector<int> d1, d2;
bool nb[100010];
void DFS(int index, int color) {
  met[index] = true;
  col[index] = color;
  if (color == 1) {
    d1.push_back(index);
    ++k1;
  } else {
    d2.push_back(index);
    ++k2;
  }
  for (int i = 0; i < edge[index].size(); ++i) {
    if (!met[edge[index][i]]) {
      DFS(edge[index][i], GetReversed(color));
    }
  }
}
void colorize(int initCol) {
  int tec = initCol;
  int nm = 0;
  for (int i = 0; i < k1; ++i) {
    if (ans[d1[i]] == 0) {
      if (nm == 3) {
        nm = 0;
        ++tec;
      }
      ++nm;
      ans[d1[i]] = tec;
    }
  }
  for (int i = 0; i < k2; ++i) {
    if (ans[d2[i]] == 0) {
      if (nm == 3) {
        nm = 0;
        ++tec;
      }
      ++nm;
      ans[d2[i]] = tec;
    }
  }
}
int main() {
  cin >> n >> m;
  for (int i = 0; i < m; ++i) {
    cin >> x >> y;
    edge[x].push_back(y);
    edge[y].push_back(x);
  }
  for (int i = 1; i <= n; ++i) {
    if (!met[i]) {
      DFS(i, 1);
    }
  }
  if (k1 % 3 == 0) {
    colorize(1);
  }
  if (k1 % 3 == 2) {
    d1.clear();
    d2.clear();
    for (int i = 1; i <= n; ++i) {
      col[i] = GetReversed(col[i]);
      if (col[i] == 1) {
        d1.push_back(i);
      } else {
        d2.push_back(i);
      }
    }
    swap(k1, k2);
  }
  if (k1 % 3 == 1) {
    int mn = 0;
    for (int i = 1; i < k1; ++i) {
      if (edge[d1[i]].size() < edge[d1[mn]].size()) {
        mn = i;
      }
    }
    if (edge[d1[mn]].size() > k2 - 2) {
      int met = 0;
      for (int i = 0; (i < k2) && (met != 2); ++i) {
        if (edge[d2[i]].size() <= k1 - 2) {
          nb[d2[i]] = true;
          for (int j = 0; j < edge[d2[i]].size(); ++j) {
            nb[edge[d2[i]][j]] = true;
          }
          ++met;
          ans[d2[i]] = met;
          int meted = 0;
          for (int j = 1; meted != 2; ++j) {
            if ((!nb[j]) && (col[j] != col[d2[i]])) {
              ++meted;
              ans[j] = met;
            }
          }
          for (int j = 1; j <= n; ++j) {
            nb[j] = false;
          }
        }
      }
      if (met != 2) {
        cout << "NO" << endl;
        return 0;
      } else {
        colorize(3);
      }
    } else {
      nb[d1[mn]] = true;
      for (int i = 0; i < edge[d1[mn]].size(); ++i) {
        nb[edge[d1[mn]][i]] = true;
      }
      ans[d1[mn]] = 1;
      int meted = 0;
      for (int i = 1; meted != 2; ++i) {
        if ((!nb[i]) && (col[i] != col[d1[mn]])) {
          ++meted;
          ans[i] = 1;
        }
      }
      colorize(2);
    }
  }
  cout << "YES" << endl;
  for (int i = 1; i <= n; ++i) {
    if (i != 1) {
      cout << " ";
    }
    cout << ans[i];
  }
  cout << endl;
  return 0;
}